:root {
    --auth-navy: #102c45;
    --auth-navy-deep: #0b2237;
    --auth-green: #0eaa79;
    --auth-green-dark: #07835e;
    --auth-ink: #142033;
    --auth-muted: #68788d;
    --auth-line: #d8e1ea;
    --auth-surface: #ffffff;
    --auth-page: #edf3f7;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(14, 170, 121, .12), transparent 28%),
        radial-gradient(circle at 88% 88%, rgba(36, 119, 189, .11), transparent 30%),
        var(--auth-page);
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.auth-card {
    width: min(900px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(310px, .78fr) minmax(440px, 1.22fr);
    overflow: hidden;
    background: var(--auth-surface);
    border: 1px solid rgba(144, 164, 184, .28);
    border-radius: 22px;
    box-shadow: 0 28px 75px rgba(15, 35, 58, .14);
}

.auth-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 42px 38px 34px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(155deg, var(--auth-navy-deep) 0%, #163a58 100%);
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.auth-brand::before {
    width: 260px;
    height: 260px;
    top: -150px;
    right: -150px;
}

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

.auth-logo {
    width: 205px;
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
}

.auth-brand-message {
    margin: auto 0;
}

.auth-eyebrow {
    margin: 0 0 12px;
    color: #69e5bd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-brand h1 {
    max-width: 310px;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.auth-brand-copy {
    max-width: 285px;
    margin: 16px 0 0;
    color: #c9d7e3;
    font-size: 14px;
    line-height: 1.75;
}

.auth-brand-footer {
    margin: 0;
    color: #849caf;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    padding: 50px 60px;
}

.auth-form-wrap {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2 {
    margin: 0 0 8px;
    color: var(--auth-ink);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.auth-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 14px;
    color: #9d2d38;
    background: #fff2f3;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.auth-alert-success {
    color: #087255;
    background: #edf9f5;
    border-color: #bcebdc;
}

.auth-alert-danger {
    color: #9d2d38;
    background: #fff2f3;
    border-color: #ffcdd2;
}

.auth-icon-svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.auth-label {
    margin: 0;
    color: #26364a;
    font-size: 13px;
    font-weight: 600;
}

.auth-forgot {
    color: var(--auth-green-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot:hover,
.auth-forgot:focus {
    color: #055f46;
    text-decoration: underline;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 15px;
    color: var(--auth-ink);
    background: #fbfcfd;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input-plain {
    padding-right: 15px;
}

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

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

.auth-input:focus {
    background: #fff;
    border-color: var(--auth-green);
    box-shadow: 0 0 0 4px rgba(14, 170, 121, .11);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #8b9bad;
}

.auth-password-toggle {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--auth-green-dark);
    background: #eaf8f3;
    outline: none;
}

.auth-eye-closed {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-eye-open {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-eye-closed {
    display: block;
}

.auth-submit {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    color: #fff;
    background: linear-gradient(135deg, #12b981, #079869);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(7, 152, 105, .2);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #0eaa79, #067e59);
    box-shadow: 0 13px 26px rgba(7, 152, 105, .26);
    transform: translateY(-1px);
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 25px 0 18px;
    color: #9aa8b7;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e2e8ef;
}

.auth-google {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #324156;
    background: #fff;
    border: 1px solid #cfdae5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-google:hover,
.auth-google:focus {
    color: #1e2c3d;
    background: #f9fbfc;
    border-color: #aebdcb;
    box-shadow: 0 5px 14px rgba(15, 35, 58, .07);
    text-decoration: none;
}

.auth-google-mark {
    color: #4285f4;
    font-size: 17px;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

.auth-register {
    margin: 23px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    text-align: center;
}

.auth-register a {
    color: var(--auth-green-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-register a:hover,
.auth-register a:focus {
    text-decoration: underline;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-back:hover,
.auth-back:focus {
    color: var(--auth-green-dark);
    text-decoration: none;
}

.auth-form-footer {
    text-align: center;
}

.auth-field-note {
    margin: 10px 0 0;
    color: #8a98a8;
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 820px) {
    .auth-shell {
        padding: 20px;
    }

    .auth-card {
        width: min(560px, 100%);
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 28px 34px;
    }

    .auth-logo {
        width: 190px;
        margin-bottom: 0;
    }

    .auth-brand-message,
    .auth-brand h1,
    .auth-brand-copy,
    .auth-brand-footer {
        display: none;
    }

    .auth-form-panel {
        padding: 40px 42px 42px;
    }
}

@media (max-width: 480px) {
    .auth-shell {
        display: block;
        padding: 0;
        background: #fff;
    }

    .auth-card {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-brand {
        padding: 24px;
    }

    .auth-logo {
        width: 176px;
        margin: 0;
    }

    .auth-form-panel {
        align-items: flex-start;
        padding: 36px 24px 42px;
    }

    .auth-heading {
        margin-bottom: 28px;
    }

    .auth-heading h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input,
    .auth-submit,
    .auth-google {
        transition: none;
    }
}
