
/* ========================================
   SAPIANT GLOBAL — AUTHENTICATION PAGES
======================================== */

.auth-page {
    margin: 0;
    background: #f7f9f7;
    font-family: 'DM Sans', sans-serif;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* LEFT BRAND PANEL */

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px clamp(32px, 5vw, 90px);
    color: #ffffff;
    background: linear-gradient(
        145deg,
        #0b1f31 0%,
        #102a43 42%,
        #174a35 100%
    );
    overflow: hidden;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    right: -240px;
    top: 12%;
    pointer-events: none;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    left: -200px;
    bottom: 5%;
    pointer-events: none;
}

.auth-brand-logo {
    position: relative;
    z-index: 1;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.auth-brand-logo span {
    color: #7fd19a;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
    padding: 65px 0;
}

.auth-eyebrow,
.auth-form-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #7fd19a;
}

.auth-brand-content h1 {
    margin: 24px 0;
    font-size: clamp(2.5rem, 4vw, 4.6rem);
    line-height: 1.12;
    letter-spacing: -2px;
}

.auth-brand-content h1 span {
    color: #7fd19a;
}

.auth-brand-content > p:not(.auth-eyebrow) {
    color: #c8d8cf;
    font-size: 0.98rem;
    line-height: 1.85;
}

.auth-brand-divider {
    height: 1px;
    background: rgba(255,255,255,0.17);
    margin: 45px 0 28px;
}

.auth-brand-note {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.auth-note-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(127,209,154,0.4);
    border-radius: 12px;
    color: #7fd19a;
    font-size: 1.5rem;
}

.auth-brand-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.auth-brand-note p {
    color: #c8d8cf;
    font-size: 0.82rem;
    line-height: 1.6;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    color: #a7bdb2;
    font-size: 0.72rem;
}

/* RIGHT FORM PANEL */

.auth-form-panel {
    display: flex;
    flex-direction: column;
    padding: 42px clamp(24px, 5vw, 90px);
    background: #f7f9f7;
}

.auth-topbar {
    display: flex;
    justify-content: flex-end;
}

.auth-back {
    color: #65736b;
    font-size: 0.82rem;
    font-weight: 600;
}

.auth-back:hover {
    color: #174a35;
}

.auth-form-container {
    width: 100%;
    max-width: 430px;
    margin: auto;
    padding: 65px 0;
}

.auth-form-eyebrow {
    color: #174a35;
    margin-bottom: 16px;
}

.auth-form-container h2 {
    color: #102a43;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -1.4px;
}

.auth-form-container h2 span {
    color: #4faf70;
}

.auth-form-description {
    margin: 18px 0 32px;
    color: #65736b;
    font-size: 0.9rem;
    line-height: 1.75;
}

.auth-google-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    background: #ffffff;
    color: #17201b;
    border: 1px solid #dce4de;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.auth-google-btn:hover {
    background: #eef4ef;
    border-color: #174a35;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    color: #87948c;
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dce4de;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-field label {
    display: block;
    margin-bottom: 10px;
    color: #102a43;
    font-size: 0.83rem;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #dce4de;
    border-radius: 9px;
    background: #ffffff;
    color: #17201b;
    font: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
    border-color: #174a35;
    box-shadow: 0 0 0 3px rgba(23,74,53,0.1);
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.auth-label-row a {
    margin-bottom: 10px;
    color: #174a35;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    background: #174a35;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.auth-submit:hover {
    background: #102a43;
    transform: translateY(-2px);
}

.auth-status {
    color: #65736b;
    font-size: 0.82rem;
    line-height: 1.6;
}

.auth-signup-text {
    margin-top: 28px;
    color: #65736b;
    font-size: 0.85rem;
    text-align: center;
}

.auth-signup-text a {
    color: #174a35;
    font-weight: 700;
}

.auth-setup-note {
    margin-top: 25px;
    padding: 12px;
    border-radius: 8px;
    background: #eaf1eb;
    color: #53675a;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.6;
}

.auth-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

.auth-bottom-links a {
    color: #65736b;
    font-size: 0.75rem;
}

.auth-bottom-links a:hover {
    color: #174a35;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: 250px;
        padding: 28px 7%;
    }

    .auth-brand-content {
        padding: 35px 0 15px;
    }

    .auth-brand-content h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .auth-brand-content > p:not(.auth-eyebrow),
    .auth-brand-divider,
    .auth-brand-note,
    .auth-brand-footer {
        display: none;
    }

    .auth-form-panel {
        padding: 30px 7%;
    }

    .auth-form-container {
        padding: 45px 0;
    }

    .auth-topbar {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-brand-content h1 {
        font-size: 1.75rem;
    }

    .auth-form-container h2 {
        font-size: 2rem;
    }

    .auth-label-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}


/* SIGNUP PAGE REFINEMENTS */

.auth-field input::placeholder {
    color: #9ba9a0;
}

.auth-field input:hover {
    border-color: #b9cabe;
}

.auth-signup-text a:hover {
    text-decoration: underline;
}

.auth-status:not(:empty) {
    padding: 12px 14px;
    background: #eef4ef;
    border-radius: 8px;
    color: #174a35;
}


/* ========================================
   PASSWORD RECOVERY PAGE
======================================== */

.auth-recovery-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 28px;

    border-radius: 16px;
    background: #e4ede5;
    border: 1px solid #cbdccf;
    color: #174a35;
}

.auth-recovery-back {
    margin-top: 32px;
    text-align: center;
}

.auth-recovery-back a {
    color: #174a35;
    font-size: 0.86rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.auth-recovery-back a:hover {
    color: #102a43;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .auth-recovery-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 22px;
    }
}


/* Hide password update form until recovery is verified */
.auth-form[hidden] {
    display: none !important;
}
