/* ============================================================
   AUTH PAGES — Dark Dungeon Theme
   ============================================================ */

.auth-page {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Atmospheric glow behind the panel */
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(242, 193, 78, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(76, 125, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

/* Subtle grid lines */
.auth-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.auth-panel {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: authFadeIn 0.6s ease both;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HEADER
   ============================================================ */
.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header h1 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(242, 193, 78, 0.2);
}

/* Gold rule under the title */
.auth-header h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================================
   FOOTER LINK
   ============================================================ */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================================
   FEEDBACK MESSAGES
   ============================================================ */
.error-message {
    background: rgba(253, 51, 51, 0.1);
    border: 1px solid rgba(253, 51, 51, 0.35);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ff8080;
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    display: none;
}

.success-message {
    background: rgba(107, 227, 107, 0.1);
    border: 1px solid rgba(107, 227, 107, 0.35);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--card-upgrade);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    display: none;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 1.5rem 0;
}

/* ============================================================
   PASSWORD FIELD
   ============================================================ */
.password-hint {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    opacity: 0.8;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 4.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

/* ============================================================
   GOOGLE BUTTON (DISABLED)
   ============================================================ */
.btn-google {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0.5;
    cursor: not-allowed;
    border-radius: 8px;
}

.btn-google span {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: #4285f4;
    opacity: 0.6;
}
