/* =========================================================
   GRACEXTOL CBT
   ORGANIZATION AUTH
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        "Inter",
        Arial,
        sans-serif;

    background: #f5f6fa;

    color: #1f2937;
}

button,
input {
    font-family: inherit;
}

a {
    text-decoration: none;
}


/* =========================================================
   PAGE
========================================================= */

.organization-auth-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(360px, 0.9fr)
        minmax(500px, 1.1fr);
}


/* =========================================================
   BRAND SIDE
========================================================= */

.organization-auth-brand {
    background:
        linear-gradient(
            145deg,
            #4c1d95,
            #6d28d9 55%,
            #7c3aed
        );

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px;
}

.brand-content {
    width: 100%;
    max-width: 560px;
}

.brand-logo {
    width: 78px;
    height: 78px;

    object-fit: contain;

    background: #ffffff;

    border-radius: 20px;

    padding: 10px;

    margin-bottom: 30px;
}

.brand-eyebrow {
    margin: 0 0 15px;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.14em;

    opacity: 0.85;
}

.brand-content h1 {
    margin: 0;

    font-size:
        clamp(
            36px,
            4vw,
            56px
        );

    line-height: 1.08;

    letter-spacing: -0.04em;
}

.brand-description {
    max-width: 520px;

    margin: 25px 0 0;

    line-height: 1.7;

    font-size: 16px;

    opacity: 0.9;
}

.brand-points {
    display: flex;

    flex-direction: column;

    gap: 16px;

    margin-top: 38px;
}

.brand-point {
    display: flex;

    align-items: center;

    gap: 13px;

    font-size: 14px;

    font-weight: 600;
}

.brand-point i {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.15
        );

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   FORM SIDE
========================================================= */

.organization-auth-form-section {
    display: flex;

    align-items: center;

    justify-content: center;

    padding: 45px 30px;
}

.organization-auth-card {
    width: 100%;

    max-width: 540px;

    background: #ffffff;

    border-radius: 22px;

    padding: 42px;

    box-shadow:
        0 20px 60px
        rgba(
            15,
            23,
            42,
            0.08
        );
}


/* =========================================================
   HEADER
========================================================= */

.form-header {
    margin-bottom: 30px;
}

.form-eyebrow {
    color: #6d28d9;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.12em;
}

.form-header h2 {
    margin:
        10px 0 12px;

    font-size: 30px;

    line-height: 1.2;

    color: #111827;
}

.form-header p {
    margin: 0;

    font-size: 14px;

    line-height: 1.65;

    color: #6b7280;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;

    color: #374151;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;

    left: 15px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #9ca3af;

    pointer-events: none;
}

.input-wrapper input {
    width: 100%;

    height: 50px;

    padding:
        0 45px;

    border:
        1px solid #d9deea;

    border-radius: 11px;

    background: #ffffff;

    font-size: 14px;

    color: #111827;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper input:focus {
    border-color: #6d28d9;

    box-shadow:
        0 0 0 4px
        rgba(
            109,
            40,
            217,
            0.10
        );
}

.input-wrapper input::placeholder {
    color: #a1a1aa;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 10px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 34px;

    height: 34px;

    border: none;

    background: transparent;

    color: #9ca3af;

    cursor: pointer;
}

.password-toggle:hover {
    color: #6d28d9;
}


/* =========================================================
   MESSAGE
========================================================= */

.auth-message {
    min-height: 22px;

    margin:
        4px 0 14px;

    font-size: 13px;

    line-height: 1.5;
}

.auth-message.error {
    color: #b91c1c;
}

.auth-message.success {
    color: #15803d;
}


/* =========================================================
   BUTTON
========================================================= */

.organization-auth-btn {
    width: 100%;

    height: 50px;

    border: none;

    border-radius: 11px;

    background: #6d28d9;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.organization-auth-btn:hover {
    background: #5b21b6;
}

.organization-auth-btn:active {
    transform:
        translateY(1px);
}

.organization-auth-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* =========================================================
   FOOTER
========================================================= */

.auth-footer {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 24px;

    font-size: 13px;

    color: #6b7280;

    text-align: center;
}

.auth-footer a {
    color: #6d28d9;

    font-weight: 700;
}

.back-link {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 20px;

    color: #6b7280;

    font-size: 13px;
}

.back-link:hover {
    color: #6d28d9;
}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 900px
) {

    .organization-auth-page {
        grid-template-columns: 1fr;
    }

    .organization-auth-brand {
        display: none;
    }

    .organization-auth-form-section {
        min-height: 100vh;

        padding:
            25px 16px;
    }

    .organization-auth-card {
        padding:
            28px 22px;
    }

}


@media (
    max-width: 500px
) {

    .form-header h2 {
        font-size: 25px;
    }

}