.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #081416;
    color: #eaf2f1;
}

.auth-page .app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 38%) 1fr;
}

.auth-page .sidebar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(2.5rem, 6vw, 6rem);
    background:
        radial-gradient(circle at 20% 20%, rgba(57, 160, 148, .16), transparent 32%),
        linear-gradient(160deg, #0d2d2d 0%, #081719 100%);
    color: #f2f7f6;
}

.auth-page .sidebar::before,
.auth-page .sidebar::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(126, 217, 204, .08);
    border-radius: 50%;
}

.auth-page .sidebar::before {
    width: 420px;
    height: 420px;
    top: -190px;
    right: -180px;
}

.auth-page .sidebar::after {
    width: 280px;
    height: 280px;
    left: -130px;
    bottom: -120px;
}

.auth-page .sidebar > div {
    position: relative;
    z-index: 1;
}

.auth-page .sidebar .eyebrow {
    margin: 0 0 .8rem;
    color: #7ad8ca;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth-page .sidebar h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 650;
}

.auth-page .main {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 4.5rem);
    background:
        radial-gradient(circle at 80% 10%, rgba(31, 95, 91, .08), transparent 28%),
        linear-gradient(145deg, #f5f8f7 0%, #edf3f2 100%);
    color: #172825;
}

.auth-page .topbar {
    display: none;
}

.auth-login {
    width: min(100%, 1100px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .78fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 2.4rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #123d39, #1d665e);
    color: #e9fffc;
    font-weight: 800;
}

.auth-kicker {
    display: block;
    margin-bottom: .8rem;
    color: #2b746a;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.auth-hero h2 {
    max-width: 680px;
    margin: 0;
    color: #102320;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: 1.07;
    letter-spacing: -.045em;
    font-weight: 680;
}

.auth-hero > div > p {
    max-width: 660px;
    margin: 1.2rem 0 0;
    color: #61716e;
    font-size: 1.05rem;
    line-height: 1.72;
}

.auth-features {
    display: grid;
    gap: .45rem;
    margin-top: 2.1rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 0;
}

.auth-feature-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e1efec;
    color: #286d64;
    font-size: .71rem;
    font-weight: 800;
}

.auth-feature strong {
    display: block;
    margin-bottom: .2rem;
    color: #213431;
}

.auth-feature small {
    color: #74827f;
}

.auth-disclaimer {
    margin: 2rem 0 0;
    color: #899592;
    font-size: .76rem;
    line-height: 1.55;
}

.auth-card {
    width: 100%;
    padding: clamp(1.8rem, 4vw, 2.7rem);
    border: 1px solid rgba(18, 55, 50, .09);
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow:
        0 30px 80px rgba(14, 46, 42, .13),
        0 4px 14px rgba(14, 46, 42, .04);
}

.auth-card-header {
    margin-bottom: 1.9rem;
}

.auth-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.45rem;
    padding: .42rem .7rem;
    border-radius: 999px;
    background: #eef8f5;
    color: #367368;
    font-size: .72rem;
    font-weight: 750;
}

.auth-secure-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #41b489;
    box-shadow: 0 0 0 4px rgba(65, 180, 137, .12);
}

.auth-card h2 {
    margin: 0;
    color: #132724;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.auth-card-header p {
    margin: .6rem 0 0;
    color: #74827f;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: .45rem;
}

.auth-field span {
    color: #364845;
    font-size: .82rem;
    font-weight: 750;
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    padding: .9rem 1rem;
    border: 1px solid #d5dfdd;
    border-radius: 11px;
    background: #fbfdfc;
    color: #132724;
    font-family: inherit;
    font-size: .96rem;
}

.auth-field input::placeholder {
    color: #9ca9a6;
}

.auth-field input:hover {
    border-color: #afc1bd;
}

.auth-field input:focus {
    outline: none;
    border-color: #347a70;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(52, 122, 112, .10);
}

.auth-submit {
    min-height: 52px;
    margin-top: .35rem;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #164e49 0%, #1d6c63 100%);
    color: #fff;
    font-family: inherit;
    font-weight: 780;
    cursor: pointer;
}

.auth-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(20, 76, 70, .18);
}

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

.auth-security {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #edf1f0;
}

.auth-security span {
    padding: .34rem .55rem;
    border-radius: 7px;
    background: #f5f8f7;
    color: #7a8986;
    font-size: .68rem;
    font-weight: 680;
}

@media (max-width: 1100px) {
    .auth-page .app-shell {
        grid-template-columns: 280px 1fr;
    }

    .auth-page .sidebar {
        padding: 2.2rem;
    }

    .auth-page .sidebar h1 {
        font-size: 2rem;
    }

    .auth-login {
        max-width: 620px;
        grid-template-columns: 1fr;
    }

    .auth-hero {
        display: none;
    }
}

@media (max-width: 760px) {
    .auth-page .app-shell {
        display: block;
    }

    .auth-page .sidebar {
        min-height: auto;
        padding: 1.35rem 1.25rem;
    }

    .auth-page .sidebar .eyebrow {
        margin-bottom: .4rem;
        font-size: .67rem;
    }

    .auth-page .sidebar h1 {
        max-width: 420px;
        font-size: 1.42rem;
    }

    .auth-page .main {
        padding: 1.2rem;
    }

    .auth-card {
        padding: 1.45rem;
        border-radius: 17px;
    }
}

/* Login desktop compacto */
@media (min-width: 1101px) {
    .auth-page {
        overflow: hidden;
    }

    .auth-page .app-shell {
        height: 100vh;
        min-height: 680px;
    }

    .auth-page .sidebar {
        padding: 3rem 4rem;
    }

    .auth-page .sidebar h1 {
        font-size: clamp(2.5rem, 3.6vw, 3.45rem);
    }

    .auth-page .main {
        padding: 2rem 3.5rem;
        overflow: hidden;
    }

    .auth-login {
        width: min(100%, 1040px);
        gap: 3rem;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
    }

    .auth-brand-mark {
        width: 52px;
        height: 52px;
        margin-bottom: 1.5rem;
    }

    .auth-kicker {
        margin-bottom: .55rem;
    }

    .auth-hero h2 {
        font-size: clamp(2rem, 3vw, 2.8rem);
        line-height: 1.04;
    }

    .auth-hero > div > p {
        margin-top: .8rem;
        font-size: .94rem;
        line-height: 1.55;
    }

    .auth-features {
        margin-top: 1.25rem;
        gap: .15rem;
    }

    .auth-feature {
        padding: .45rem 0;
    }

    .auth-feature-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .auth-disclaimer {
        margin-top: 1.15rem;
    }

    .auth-card {
        padding: 1.75rem;
        border-radius: 18px;
    }

    .auth-card-header {
        margin-bottom: 1.25rem;
    }

    .auth-secure-badge {
        margin-bottom: 1rem;
    }

    .auth-card h2 {
        font-size: 1.65rem;
    }

    .auth-card-header p {
        margin-top: .4rem;
    }

    .auth-form {
        gap: .75rem;
    }

    .auth-field {
        gap: .3rem;
    }

    .auth-field input {
        min-height: 48px;
        padding: .75rem .9rem;
    }

    .auth-submit {
        min-height: 48px;
    }

    .auth-security {
        margin-top: 1rem;
        padding-top: .9rem;
    }
}


/* Correção de altura do login desktop */
@media (min-width: 1101px) {
    .auth-page {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .auth-page .app-shell {
        height: auto;
        min-height: 100vh;
    }

    .auth-page .main {
        min-height: 100vh;
        overflow: visible;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .auth-login {
        margin: auto 0;
    }
}
