/* ── AUTH PAGES ── */

.auth-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    cursor: auto;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .35;
}

.auth-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(252,211,0,.18), transparent 70%);
    top: -150px;
    left: -150px;
}

.auth-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100,60,220,.15), transparent 70%);
    bottom: -100px;
    right: -100px;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.auth-logo {
    display: flex;
    align-items: center;
}

.auth-logo img {
    height: 32px;
}

.auth-plan-badge {
    background: var(--goldSub);
    border: 1px solid var(--borderG);
    border-radius: var(--r-pill);
    padding: .45rem 1.2rem;
    font-size: .78rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.apb-tier {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted2);
}

.apb-price {
    font-weight: 800;
    font-size: .9rem;
    margin-left: .3rem;
}

.auth-card {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--borderB);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: 0 8px 48px rgba(0,0,0,.5);
}

.auth-card-head {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 0;
}

.auth-sub {
    font-size: .84rem;
    color: var(--muted);
    margin: .5rem 0 0;
}

.auth-alert {
    border-radius: var(--r);
    padding: .85rem 1.1rem;
    font-size: .84rem;
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

.auth-alert-error {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(52,211,153,.08);
    border: 1px solid rgba(52,211,153,.25);
    color: #6ee7b7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .42rem;
}

.auth-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-forgot {
    color: var(--gold);
    text-decoration: none;
    font-size: .7rem;
}

.auth-input {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: .78rem 1rem;
    color: var(--white);
    font-family: var(--sans);
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    cursor: auto;
}

.auth-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(252,211,0,.08);
}

.auth-input::placeholder {
    color: var(--muted2);
}

.auth-input:disabled {
    opacity: .45;
    cursor: not-allowed;
}

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

.auth-pw-wrap .auth-input {
    padding-right: 2.8rem;
}

.auth-pw-tog {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.auth-submit {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: var(--r-pill);
    padding: .9rem 1.5rem;
    font-family: var(--sans);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: .4rem;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.auth-submit:hover {
    background: var(--goldD);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(252,211,0,.22);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.4rem 0 1rem;
    font-size: .72rem;
    color: var(--muted2);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-switch-btn {
    display: block;
    text-align: center;
    background: transparent;
    border: 1px solid var(--borderB);
    border-radius: var(--r-pill);
    padding: .78rem 1.5rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.auth-switch-btn:hover {
    border-color: var(--borderG);
    background: var(--goldSub);
    color: var(--gold);
}

.auth-terms {
    font-size: .7rem;
    color: var(--muted2);
    text-align: center;
    line-height: 1.6;
}

.auth-terms a {
    color: var(--gold);
    text-decoration: none;
}

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

/* Success card */
.success-card {
    text-align: center;
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: .5rem;
}

.success-order-box {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.2rem;
    margin: 1.5rem 0;
    text-align: left;
}

.sob-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    font-size: .84rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.sob-row:last-child {
    border-bottom: none;
}

.sob-row span {
    color: var(--muted);
}

.status-paid {
    color: #34d399;
}

.status-pending {
    color: var(--gold);
}

.success-next {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.sn-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 1rem;
}

.sn-step {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: .65rem;
    line-height: 1.5;
}

.sn-step:last-child {
    margin-bottom: 0;
}

.sn-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--goldSub);
    border: 1px solid var(--borderG);
    color: var(--gold);
    font-size: .65rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: .1rem;
}

@media (max-width: 480px) {
    .auth-card { padding: 1.8rem 1.4rem; }
    .auth-row { grid-template-columns: 1fr; }
}
