﻿.auth-page {
    --auth-bg: var(--plus-bg, #fbf7ef);
    --auth-surface: rgba(255, 252, 246, 0.94);
    --auth-surface-strong: #fffaf1;
    --auth-line: rgba(92, 66, 43, 0.14);
    --auth-line-strong: rgba(183, 121, 31, 0.34);
    --auth-text: var(--plus-text, #2f261f);
    --auth-muted: var(--plus-muted, #746454);
    --auth-accent: var(--plus-accent, #b85f42);
    --auth-gold: var(--plus-gold, #b7791f);
    --auth-green: var(--plus-sage, #7a8f45);
    --auth-shadow: 0 24px 70px rgba(92, 66, 43, 0.12);
    min-height: calc(100vh - 220px);
    padding: 52px 18px 72px;
    color: var(--auth-text);
    background:
        linear-gradient(180deg, rgba(255, 250, 241, 0.72), rgba(251, 247, 239, 0.96)),
        var(--auth-bg);
}

.auth-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.86fr);
    border: 1px solid var(--auth-line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
}

.auth-hero {
    position: relative;
    min-height: 650px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(135deg, rgba(184, 95, 66, 0.16), rgba(183, 121, 31, 0.10)),
        linear-gradient(180deg, #fff8ec, #f7ecdc);
}

.auth-hero:before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(183, 121, 31, 0.20);
    border-radius: 18px;
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 12px;
    color: var(--auth-text);
    font-size: 18px;
    font-weight: 800;
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-gold));
    box-shadow: 0 14px 28px rgba(184, 95, 66, 0.22);
}

.auth-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.auth-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #92704f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-hero h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1.14;
    color: #3f2418;
}

.auth-hero p {
    margin-top: 18px;
    color: var(--auth-muted);
    font-size: 17px;
    line-height: 1.8;
}

.auth-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-feature {
    padding: 16px;
    border: 1px solid rgba(183, 121, 31, 0.18);
    border-radius: 14px;
    background: rgba(255, 252, 246, 0.70);
}

.auth-feature strong,
.auth-feature span {
    display: block;
}

.auth-feature strong {
    margin-bottom: 6px;
    color: #6a3a1e;
    font-size: 15px;
}

.auth-feature span {
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.45;
}

.auth-panel {
    padding: 48px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 253, 249, 0.96);
}

.auth-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.auth-panel-head h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 32px;
    line-height: 1.2;
}

.auth-text-link {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--auth-line);
    border-radius: 999px;
    color: #8a5a26;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 250, 241, 0.80);
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.auth-text-link:hover {
    transform: translateY(-1px);
    border-color: var(--auth-line-strong);
    color: var(--auth-accent);
}

.auth-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.auth-stepper-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-step {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    color: var(--auth-muted);
    background: #fffaf3;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.auth-step span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 50%;
    color: #8a6b48;
    background: #f2eadc;
    font-size: 13px;
    font-weight: 900;
}

.auth-step b {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.auth-step.active,
.auth-step.done {
    border-color: var(--auth-line-strong);
    color: #5a331d;
    background: linear-gradient(135deg, rgba(184, 95, 66, 0.11), rgba(183, 121, 31, 0.12));
}

.auth-step.active span,
.auth-step.done span {
    color: #fff;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-gold));
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #5c422b;
    font-size: 14px;
    font-weight: 800;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    background: #fffdf8;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-input-wrap:focus-within {
    border-color: var(--auth-line-strong);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(183, 121, 31, 0.10);
}

.auth-input-icon,
.auth-input-wrap > .layui-icon {
    width: 48px;
    flex: 0 0 48px;
    color: #b77a36;
    text-align: center;
    font-size: 20px;
}

.auth-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-input-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.auth-input-wrap .layui-input {
    height: 50px;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 16px 0 0;
    color: var(--auth-text);
    background: transparent;
    box-shadow: none;
}

.auth-input-wrap .layui-input:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.auth-input-wrap .layui-input::placeholder {
    color: #a89786;
}

.auth-password-toggle {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    margin-right: 4px;
    border: 0;
    border-radius: 999px;
    color: #9b7147;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: rgba(183, 121, 31, 0.10);
    color: var(--auth-accent);
    outline: none;
    transform: translateY(-1px);
}

.auth-password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.auth-password-toggle svg[hidden] {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] {
    background: rgba(183, 121, 31, 0.12);
    color: var(--auth-accent);
}

.auth-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 18px;
    color: var(--auth-muted);
    font-size: 13px;
}

.auth-action-row a {
    color: #7b5631;
    font-weight: 700;
    transition: color 160ms ease;
}

.auth-action-row a:hover,
.auth-action-row a:focus-visible {
    color: var(--auth-accent);
    outline: none;
}

.auth-submit {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-gold));
    box-shadow: 0 16px 30px rgba(184, 95, 66, 0.20);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.auth-submit:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 20px 36px rgba(184, 95, 66, 0.26);
}

.auth-submit[disabled] {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
    box-shadow: 0 10px 20px rgba(184, 95, 66, 0.16);
}

.auth-submit.is-loading {
    color: rgba(255, 255, 255, 0.72);
}

.auth-login-note {
    margin: 14px 0 0;
    color: #9a8876;
    font-size: 13px;
    line-height: 1.7;
}

.auth-success {
    display: none;
    min-height: 312px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.auth-success.active {
    display: flex;
}

.auth-success-icon {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-green), var(--auth-gold));
    box-shadow: 0 18px 36px rgba(122, 143, 69, 0.22);
}

.auth-success-icon svg {
    width: 42px;
    height: 42px;
    display: block;
}

.auth-success h3 {
    margin: 0 0 10px;
    color: var(--auth-text);
    font-size: 28px;
}

.auth-success p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.7;
}

.auth-success a {
    margin: 0 4px;
    color: var(--auth-accent);
    font-weight: 800;
}

@media (max-width: 960px) {
    .auth-page {
        min-height: auto;
        padding: 14px 10px 34px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .auth-hero {
        min-height: auto;
        padding: 16px 18px;
        gap: 10px;
        justify-content: flex-start;
    }

    .auth-hero:before {
        inset: 8px;
        border-radius: 12px;
    }

    .auth-hero h1 {
        font-size: 22px;
        line-height: 1.2;
    }

    .auth-hero p {
        display: none;
    }

    .auth-brand {
        gap: 9px;
        font-size: 16px;
    }

    .auth-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .auth-brand-mark svg {
        width: 18px;
        height: 18px;
    }

    .auth-hero-copy {
        max-width: none;
    }

    .auth-eyebrow {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .auth-feature-grid {
        display: none;
    }

    .auth-panel {
        padding: 24px 18px 28px;
    }

    .auth-panel-head {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .auth-panel-head h2 {
        font-size: 24px;
    }

    .auth-stepper,
    .auth-stepper-two {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .auth-step {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }

    .auth-step span {
        margin-bottom: 0;
    }

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

    .auth-action-row {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .auth-action-row a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border: 1px solid var(--auth-line);
        border-radius: 12px;
        background: rgba(255, 250, 241, 0.86);
    }

    .auth-login-note {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 8px 8px 24px;
    }

    .auth-shell {
        border-radius: 14px;
    }

    .auth-hero {
        padding: 12px 14px;
        gap: 8px;
        background:
            linear-gradient(135deg, rgba(184, 95, 66, 0.13), rgba(183, 121, 31, 0.08)),
            linear-gradient(180deg, #fff9ef, #f8efe2);
    }

    .auth-hero:before {
        display: none;
    }

    .auth-brand {
        font-size: 15px;
    }

    .auth-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .auth-hero h1 {
        font-size: 20px;
    }

    .auth-eyebrow {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .auth-panel {
        padding: 21px 14px 24px;
    }

    .auth-panel-head {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .auth-panel-head h2 {
        font-size: 23px;
    }

    .auth-text-link {
        width: 100%;
        text-align: center;
    }

    .auth-password-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}
