/* Auth pages: Dark Liquid Glass */

.auth-wrapper {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8) var(--sp-5);
    position: relative;
    overflow: hidden;
    background: #08080c;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154,92,249,0.20) 0%, rgba(90,200,250,0.06) 40%, transparent 70%);
    top: 15%;
    right: -8%;
    pointer-events: none;
    animation: authOrbDrift 15s ease-in-out infinite;
    filter: blur(40px);
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,45,149,0.12) 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    pointer-events: none;
    animation: authOrbDrift 20s ease-in-out infinite reverse;
    filter: blur(40px);
}

@keyframes authOrbDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 30px); }
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--w-narrow);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: var(--sp-8) var(--sp-6);
    box-shadow: 0 0 60px rgba(154,92,249,0.06), 0 30px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f5f5f7;
    margin-bottom: var(--sp-5);
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin-bottom: var(--sp-5);
}

.auth-hint {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--sp-5);
}

.auth-hint strong {
    color: #f5f5f7;
}

.auth-field {
    margin-bottom: var(--sp-4);
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--sp-2);
}

.auth-field input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.04);
    color: #f5f5f7;
    outline: none;
    transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.auth-field input::placeholder {
    color: rgba(255,255,255,0.25);
}

.auth-field input:focus {
    border-color: rgba(154,92,249,0.5);
    box-shadow: 0 0 0 3px rgba(154,92,249,0.12);
}

.auth-btn {
    width: 100%;
    padding: var(--sp-3);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-purple, #9A5CF9), var(--brand-pink, #FF2D95));
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: filter var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
    margin-top: var(--sp-2);
    box-shadow: 0 0 20px rgba(154,92,249,0.2);
}

.auth-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(154,92,249,0.35);
}

.auth-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.auth-btn-secondary {
    width: 100%;
    padding: var(--sp-3);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: rgba(255,255,255,0.7);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.auth-btn-secondary:hover:not(:disabled) {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.20);
}

.auth-btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.auth-row-btns {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-top: var(--sp-3);
}

.auth-error {
    display: none;
    margin-top: var(--sp-4);
    padding: 10px 14px;
    font-size: 13px;
    color: #ff6b6b;
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.15);
    border-radius: var(--r-sm);
}

.auth-error.visible { display: block; }

.auth-success {
    display: none;
    margin-top: var(--sp-4);
    padding: 10px 14px;
    font-size: 13px;
    color: #4ade80;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.15);
    border-radius: var(--r-sm);
}

.auth-success.visible { display: block; }

.auth-footer {
    margin-top: var(--sp-5);
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

.auth-footer a {
    color: #a78bfa;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #c4b5fd;
}

.auth-step { display: block; }
.auth-step.hidden { display: none; }

.otp-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 0.4em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 639px) {
    .auth-wrapper {
        padding: var(--sp-6) var(--sp-4);
    }
}
