/* ════════════════════════════════════════
   AUTH PAGES (Login / Register)
   ════════════════════════════════════════ */

.auth-body {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    position: relative;
    overflow-x: hidden;
}

/* Subtle noise texture overlay */
.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
    z-index: 0;
}

/* Dramatic gradient wash */
.auth-body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(139, 26, 26, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    animation: fadeUp 0.6s var(--ease-out);
}

.auth-card {
    background: rgba(26, 26, 30, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: var(--radius-lg);
    padding: 40px 28px 36px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(201, 168, 76, 0.08) inset;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-kanji {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(201, 168, 76, 0.2);
    animation: fadeIn 0.8s var(--ease-out) 0.2s both;
}

.auth-header h1 {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fff;
    animation: fadeUp 0.6s var(--ease-out) 0.3s both;
}

.auth-subtitle {
    color: var(--ash);
    font-size: 0.8125rem;
    margin-top: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: fadeUp 0.6s var(--ease-out) 0.4s both;
}

/* Decorative brush line */
.auth-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto 0;
    animation: brushReveal 0.8s var(--ease-out) 0.5s both;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeUp 0.6s var(--ease-out) 0.5s both;
}

/* Auth-specific form overrides */
.auth-card .form-group label {
    color: var(--ash);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.auth-card .form-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

.auth-card .form-group input::placeholder {
    color: var(--stone);
}

.auth-card .form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

/* Password toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 44px !important;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--stone);
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color var(--duration) var(--ease-out);
}

.password-toggle:hover {
    color: var(--ash);
}

.password-toggle .eye-on {
    display: none;
}

.password-toggle.visible .eye-off {
    display: none;
}

.password-toggle.visible .eye-on {
    display: block;
}

.auth-card .btn-primary {
    background: var(--crimson);
    margin-top: 4px;
    padding: 15px 20px;
    font-size: 0.9375rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(139, 26, 26, 0.6);
    transition: all var(--duration) var(--ease-out);
}

.auth-card .btn-primary:hover {
    background: var(--crimson-light);
    box-shadow: 0 4px 20px rgba(139, 26, 26, 0.3);
    transform: translateY(-1px);
}

.auth-card .btn-primary:active {
    transform: translateY(0) scale(0.99);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--stone);
    animation: fadeIn 0.6s var(--ease-out) 0.7s both;
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--duration-fast);
    border-bottom: 1px solid transparent;
}

.auth-footer a:hover {
    color: var(--gold-pale);
    border-bottom-color: var(--gold-pale);
}
