.auth-page {
    --auth-surface: #ffffff;
    --auth-background: #fbfcfb;
    --auth-border: rgba(17, 17, 17, 0.075);
    --auth-divider: rgba(17, 17, 17, 0.065);
    --auth-input-border: rgba(17, 17, 17, 0.16);
    --auth-radius-card: 10px;
    --auth-radius-control: 8px;
    --auth-shadow: 0 14px 38px rgba(17, 17, 17, 0.035);
    width: 100%;
    min-height: auto;
    padding: 64px 0 52px;
    flex: 1 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--auth-background);
    color: var(--color-text);

    font-family: var(--font-main);
    font-size: var(--fs-body);
}

.auth-page *, .auth-page *::before, .auth-page *::after {
    box-sizing: border-box;
}

.auth-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.auth-card, .auth-card-login-only {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    min-height: 420px;

    overflow: hidden;

    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-card);
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
}

.auth-intro {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(30px, 4vw, 52px);

    border-right: 1px solid var(--auth-divider);
    background: var(--auth-surface);
    color: var(--color-text);
}

.auth-intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 38px;

    width: 3px;
    height: 84px;

    background: var(--color-primary);
    pointer-events: none;
}

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

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

.auth-kicker {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    width: fit-content;

    margin: 0 0 12px;
    padding: 0;

    background: transparent;
    border-radius: 0;

    color: var(--color-primary);
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.auth-intro h1 {
    position: relative;
    z-index: 1;

    max-width: 520px;
    margin: 0;

    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-title);
    line-height: 0.97;
    font-weight: 720;
    letter-spacing: -0.065em;
}

.auth-intro > p {
    position: relative;
    z-index: 1;

    max-width: 460px;
    margin: 28px 0 0;

    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.86;
    font-weight: 420;
}

.auth-benefits {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 12px;

    margin-top: 34px;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-benefit span {
    width: 7px;
    height: 7px;
    margin-top: 0.62em;

    flex: 0 0 auto;

    border-radius: 50%;
    background: var(--color-secondary);
}

.auth-benefit p {
    margin: 0;

    color: rgba(17, 17, 17, 0.61);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.55;
    font-weight: 420;
}

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

    padding: clamp(30px, 4vw, 52px);

    background: var(--auth-surface);
}

.auth-content {
    display: block;
}

.auth-form-head {
    margin-bottom: 22px;
}

.auth-form-kicker {
    display: inline-flex;
    align-items: center;

    margin: 0 0 12px;
    padding: 0;

    background: transparent;
    border-radius: 0;

    color: var(--color-primary);
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.auth-form-head h2 {
    margin: 0;

    color: var(--color-text);
    font-family: var(--font-accent);
    font-size: var(--fs-subtitle);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.auth-form-head p {
    margin: 12px 0 0;

    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.72;
    font-weight: 420;
}

.auth-form {
    width: 100%;
    margin: 0;
}

.auth-form-group {
    margin-bottom: 14px;
}

.auth-label {
    display: block;

    margin-bottom: 7px;

    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.2;
    font-weight: 600;
}

.auth-form input, .auth-form select, .auth-form textarea {
width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-radius-control);
    background: var(--auth-surface);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.25;
    font-weight: 450;
    outline: 0;
    box-shadow: none;
    box-sizing: border-box;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.auth-form textarea {
    min-height: 110px;
    padding-top: 11px;
    resize: vertical;
    line-height: 1.45;
}

.auth-form input:hover, .auth-form select:hover, .auth-form textarea:hover {
    border-color: rgba(184, 50, 95, 0.30);
}

.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus {
    border-color: var(--color-primary);
    background: var(--auth-surface);
    box-shadow: 0 0 0 3px rgba(61, 199, 171, 0.12);
}

.auth-form input::placeholder, .auth-form textarea::placeholder {
    color: rgba(17, 17, 17, 0.42);
}

/* Keep browser autofill visually consistent with normal fields. */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text);
    caret-color: var(--color-text);
    -webkit-box-shadow: 0 0 0 1000px var(--auth-surface) inset;
    box-shadow: 0 0 0 1000px var(--auth-surface) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-form input:autofill {
    background: var(--auth-surface);
    color: var(--color-text);
    box-shadow: 0 0 0 1000px var(--auth-surface) inset;
}

.auth-alert {
    margin-bottom: 16px;
    padding: 14px 16px;

    border: 1px solid rgba(184, 50, 95, 0.18);
    border-radius: var(--auth-radius-card);

    background: rgba(184, 50, 95, 0.045);
    color: var(--color-text);

    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.45;
    font-weight: 500;
}

.auth-alert-title {
    display: block;
    margin-bottom: 4px;

    color: var(--color-raspberry);
    font-family: var(--font-main);
    font-weight: 800;
}

.auth-form ul.errorlist {
    margin: 7px 0 0;
    padding: 0;

    list-style: none;

    color: var(--color-raspberry);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.35;
    font-weight: 700;
}

.auth-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 12px 24px;

    border-radius: var(--auth-radius-control);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1;
    font-weight: 780;
    letter-spacing: 0.01em;

    cursor: pointer;
    text-decoration: none !important;

    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}

.auth-submit-login {
    border: 1px solid var(--color-raspberry);
    background: var(--color-raspberry);
    color: var(--auth-surface);
}

.auth-submit-login:hover {
    background: #9f294f;
    border-color: #9f294f;
    color: var(--auth-surface);
    transform: translateY(-1px);
}

.auth-register-prompt {
    margin-top: 18px;
    text-align: center;
}

.auth-register-prompt p {
    margin: 0;
    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 500;
}

.auth-submit-register {
margin-top: 8px;
    border: 1px solid rgba(1, 141, 113, 0.28);
    background: var(--auth-surface);
    color: var(--color-primary) !important;
}

.auth-submit-register:hover {
background: rgba(61, 199, 171, 0.09);
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.auth-form-footer {
display: flex;
    justify-content: center;
    margin-top: 14px;
}

.auth-forgot-link {
display: inline-flex;
    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease;
}

.auth-forgot-link:hover {
color: var(--color-primary);
    text-decoration: underline;
}

.site-footer {
    margin-top: 0;
}

/* Tablet: up to 1024px */


/* Phone: up to 640px */

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 641px) and (max-width: 1200px) {
.auth-page {
        padding: 56px 0;
    }

    .auth-shell {
        width: min(100%, calc(100% - 24px));
    }

    .auth-card, .auth-card-login-only {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-intro {
        padding: 34px 32px 30px;
        border-right: 0;
        border-bottom: 1px solid rgba(17, 17, 17, 0.065);
    }

    .auth-intro::before {
        left: 0;
        top: 32px;
        width: 3px;
        height: 58px;
        border-radius: 0;
    }

    .auth-intro h1 {
        max-width: 100%;
        font-size: var(--fs-title);
    }

    .auth-intro > p {
        max-width: 100%;
        margin-top: 20px;
    }

    .auth-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 24px;
    }

    .auth-benefit {
        align-items: flex-start;
    }

    .auth-forms {
        padding: 34px 32px;
    }
}

@media (max-width: 640px) {
.auth-page {
        padding: 56px 0;
    }

    .auth-shell {
        width: min(100%, calc(100% - 24px));
    }

    .auth-card, .auth-card-login-only {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-intro {
        padding: 34px 32px 30px;
        border-right: 0;
        border-bottom: 1px solid rgba(17, 17, 17, 0.065);
    }

    .auth-intro::before {
        left: 0;
        top: 32px;
        width: 3px;
        height: 58px;
        border-radius: 0;
    }

    .auth-intro h1 {
        max-width: 100%;
        font-size: var(--fs-title);
    }

    .auth-intro > p {
        max-width: 100%;
        margin-top: 20px;
    }

    .auth-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 24px;
    }

    .auth-benefit {
        align-items: flex-start;
    }

    .auth-forms {
        padding: 34px 32px;
    }

.auth-page {
        padding: 44px 0;
    }

    .auth-shell {
        width: calc(100% - 16px);
    }

    .auth-intro {
        padding: 30px 22px 28px;
    }

    .auth-intro::before {
        top: 28px;
    }

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

    .auth-forms {
        padding: 28px 22px 30px;
    }

    .auth-form-head {
        margin-bottom: 22px;
    }

    .auth-intro {
        padding: 28px 18px 26px;
    }

    .auth-forms {
        padding: 26px 18px 28px;
    }
}
