/**
 * Auth Pages Mystical Theme v1.0
 * Dark Teal Mystical Aesthetic - Matching Dashboard Theme
 * Mobile-First Responsive Design
 *
 * For: login.php, register.php, forgot-password.php, reset-password.php
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Deep Mystical Teal Background Colors */
    --auth-bg-deepest: #021a1a;
    --auth-bg-darker: #062929;
    --auth-bg-dark: #083b3b;
    --auth-bg-card: #094444;
    --auth-bg-card-hover: #0a4d4d;

    /* Teal Accent Palette */
    --auth-teal-darkest: #0d9488;
    --auth-teal-dark: #14b8a6;
    --auth-teal-primary: #2dd4bf;
    --auth-teal-medium: #5eead4;
    --auth-teal-light: #99f6e4;
    --auth-teal-accent: #ccfbf1;

    /* Text Colors */
    --auth-text-white: #ffffff;
    --auth-text-light: #e8f0f0;
    --auth-text-muted: #a0b8b8;
    --auth-text-teal: var(--auth-teal-medium);

    /* Input Colors */
    --auth-input-bg: rgba(45, 212, 191, 0.08);
    --auth-input-border: rgba(45, 212, 191, 0.2);
    --auth-input-focus-border: rgba(45, 212, 191, 0.5);
    --auth-input-focus-shadow: rgba(45, 212, 191, 0.15);

    /* Borders & Shadows */
    --auth-border-teal: 1px solid rgba(45, 212, 191, 0.3);
    --auth-border-teal-light: 1px solid rgba(45, 212, 191, 0.15);
    --auth-shadow-teal-glow: 0 0 30px rgba(45, 212, 191, 0.2);
    --auth-shadow-card: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* ============================================
   BODY & DEEP MYSTICAL BACKGROUND
   ============================================ */
body.auth-mystical-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--auth-bg-deepest) !important;
    color: var(--auth-text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Zodiac Wheel Background - Sol Alt - Teal Glow */
body.auth-mystical-page::before {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -15%;
    width: 600px;
    height: 600px;
    background-image:
        radial-gradient(ellipse at center, rgba(45, 212, 191, 0.45) 0%, rgba(20, 184, 166, 0.25) 30%, transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cdefs%3E%3ClinearGradient id='zodiacGradAuth1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2345f0df;stop-opacity:0.9'/%3E%3Cstop offset='50%25' style='stop-color:%232dd4bf;stop-opacity:0.75'/%3E%3Cstop offset='100%25' style='stop-color:%2314b8a6;stop-opacity:0.65'/%3E%3C/linearGradient%3E%3CradialGradient id='centerGlowAuth1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' style='stop-color:%2345f0df;stop-opacity:0.75'/%3E%3Cstop offset='50%25' style='stop-color:%232dd4bf;stop-opacity:0.45'/%3E%3Cstop offset='100%25' style='stop-color:%2314b8a6;stop-opacity:0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='250' cy='250' r='80' fill='url(%23centerGlowAuth1)'/%3E%3Ccircle cx='250' cy='250' r='230' fill='none' stroke='url(%23zodiacGradAuth1)' stroke-width='2'/%3E%3Ccircle cx='250' cy='250' r='195' fill='none' stroke='url(%23zodiacGradAuth1)' stroke-width='1.7'/%3E%3Ccircle cx='250' cy='250' r='160' fill='none' stroke='url(%23zodiacGradAuth1)' stroke-width='1.4'/%3E%3Ccircle cx='250' cy='250' r='125' fill='none' stroke='url(%23zodiacGradAuth1)' stroke-width='1.1'/%3E%3Ccircle cx='250' cy='250' r='90' fill='none' stroke='url(%23zodiacGradAuth1)' stroke-width='0.9'/%3E%3Cg stroke='url(%23zodiacGradAuth1)' stroke-width='0.8'%3E%3Cline x1='250' y1='20' x2='250' y2='90'/%3E%3Cline x1='480' y1='250' x2='410' y2='250'/%3E%3Cline x1='250' y1='480' x2='250' y2='410'/%3E%3Cline x1='20' y1='250' x2='90' y2='250'/%3E%3Cline x1='413' y1='87' x2='365' y2='135'/%3E%3Cline x1='413' y1='413' x2='365' y2='365'/%3E%3Cline x1='87' y1='413' x2='135' y2='365'/%3E%3Cline x1='87' y1='87' x2='135' y2='135'/%3E%3Cline x1='340' y1='45' x2='310' y2='100'/%3E%3Cline x1='455' y1='160' x2='400' y2='190'/%3E%3Cline x1='455' y1='340' x2='400' y2='310'/%3E%3Cline x1='340' y1='455' x2='310' y2='400'/%3E%3C/g%3E%3Cg fill='%2345f0df' opacity='0.8' font-family='serif' font-size='22' text-anchor='middle'%3E%3Ctext x='250' y='55'%3E%E2%99%88%3C/text%3E%3Ctext x='355' y='105'%3E%E2%99%89%3C/text%3E%3Ctext x='425' y='195'%3E%E2%99%8A%3C/text%3E%3Ctext x='455' y='260'%3E%E2%99%8B%3C/text%3E%3Ctext x='425' y='330'%3E%E2%99%8C%3C/text%3E%3Ctext x='355' y='410'%3E%E2%99%8D%3C/text%3E%3Ctext x='250' y='460'%3E%E2%99%8E%3C/text%3E%3Ctext x='145' y='410'%3E%E2%99%8F%3C/text%3E%3Ctext x='75' y='330'%3E%E2%99%90%3C/text%3E%3Ctext x='45' y='260'%3E%E2%99%91%3C/text%3E%3Ctext x='75' y='195'%3E%E2%99%92%3C/text%3E%3Ctext x='145' y='105'%3E%E2%99%93%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    filter: drop-shadow(0 0 80px rgba(45, 212, 191, 0.8))
            drop-shadow(0 0 120px rgba(20, 184, 166, 0.6));
    animation: authZodiacRotate1 100s linear infinite;
}

/* Zodiac Wheel Background - Sag Ust - Teal Glow */
body.auth-mystical-page::after {
    content: '';
    position: fixed;
    top: -15%;
    right: -15%;
    width: 520px;
    height: 520px;
    background-image:
        radial-gradient(ellipse at center, rgba(45, 212, 191, 0.4) 0%, rgba(20, 184, 166, 0.2) 30%, transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cdefs%3E%3ClinearGradient id='zodiacGradAuth2' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2345f0df;stop-opacity:0.85'/%3E%3Cstop offset='50%25' style='stop-color:%232dd4bf;stop-opacity:0.7'/%3E%3Cstop offset='100%25' style='stop-color:%2314b8a6;stop-opacity:0.6'/%3E%3C/linearGradient%3E%3CradialGradient id='centerGlowAuth2' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' style='stop-color:%2345f0df;stop-opacity:0.7'/%3E%3Cstop offset='50%25' style='stop-color:%232dd4bf;stop-opacity:0.4'/%3E%3Cstop offset='100%25' style='stop-color:%2314b8a6;stop-opacity:0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='250' cy='250' r='80' fill='url(%23centerGlowAuth2)'/%3E%3Ccircle cx='250' cy='250' r='230' fill='none' stroke='url(%23zodiacGradAuth2)' stroke-width='1.8'/%3E%3Ccircle cx='250' cy='250' r='195' fill='none' stroke='url(%23zodiacGradAuth2)' stroke-width='1.5'/%3E%3Ccircle cx='250' cy='250' r='160' fill='none' stroke='url(%23zodiacGradAuth2)' stroke-width='1.2'/%3E%3Ccircle cx='250' cy='250' r='125' fill='none' stroke='url(%23zodiacGradAuth2)' stroke-width='1'/%3E%3Ccircle cx='250' cy='250' r='90' fill='none' stroke='url(%23zodiacGradAuth2)' stroke-width='0.8'/%3E%3Cg stroke='url(%23zodiacGradAuth2)' stroke-width='0.7'%3E%3Cline x1='250' y1='20' x2='250' y2='90'/%3E%3Cline x1='480' y1='250' x2='410' y2='250'/%3E%3Cline x1='250' y1='480' x2='250' y2='410'/%3E%3Cline x1='20' y1='250' x2='90' y2='250'/%3E%3Cline x1='413' y1='87' x2='365' y2='135'/%3E%3Cline x1='413' y1='413' x2='365' y2='365'/%3E%3Cline x1='87' y1='413' x2='135' y2='365'/%3E%3Cline x1='87' y1='87' x2='135' y2='135'/%3E%3Cline x1='340' y1='45' x2='310' y2='100'/%3E%3Cline x1='455' y1='160' x2='400' y2='190'/%3E%3Cline x1='455' y1='340' x2='400' y2='310'/%3E%3Cline x1='340' y1='455' x2='310' y2='400'/%3E%3C/g%3E%3Cg fill='%2345f0df' opacity='0.75' font-family='serif' font-size='22' text-anchor='middle'%3E%3Ctext x='250' y='55'%3E%E2%99%88%3C/text%3E%3Ctext x='355' y='105'%3E%E2%99%89%3C/text%3E%3Ctext x='425' y='195'%3E%E2%99%8A%3C/text%3E%3Ctext x='455' y='260'%3E%E2%99%8B%3C/text%3E%3Ctext x='425' y='330'%3E%E2%99%8C%3C/text%3E%3Ctext x='355' y='410'%3E%E2%99%8D%3C/text%3E%3Ctext x='250' y='460'%3E%E2%99%8E%3C/text%3E%3Ctext x='145' y='410'%3E%E2%99%8F%3C/text%3E%3Ctext x='75' y='330'%3E%E2%99%90%3C/text%3E%3Ctext x='45' y='260'%3E%E2%99%91%3C/text%3E%3Ctext x='75' y='195'%3E%E2%99%92%3C/text%3E%3Ctext x='145' y='105'%3E%E2%99%93%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    filter: drop-shadow(0 0 70px rgba(45, 212, 191, 0.7))
            drop-shadow(0 0 100px rgba(20, 184, 166, 0.5));
    animation: authZodiacRotate2 80s linear infinite reverse;
}

/* Zodiac Rotation Animations */
@keyframes authZodiacRotate1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes authZodiacRotate2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hide video background */
body.auth-mystical-page .bg-video,
body.auth-mystical-page .bg-overlay,
body.auth-mystical-page .stars {
    display: none !important;
}

/* ============================================
   LOGIN CARD
   ============================================ */
body.auth-mystical-page .login-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(9, 68, 68, 0.85) 0%, rgba(6, 41, 41, 0.9) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 212, 191, 0.25) !important;
    box-shadow:
        0 0 50px rgba(45, 212, 191, 0.2),
        0 10px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(45, 212, 191, 0.1) inset !important;
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: authCardFloat 0.8s ease-out;
}

@keyframes authCardFloat {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card decorative top border */
body.auth-mystical-page .login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--auth-teal-primary), transparent);
    opacity: 0.7;
}

/* ============================================
   BRAND HEADER
   ============================================ */
body.auth-mystical-page .brand-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

body.auth-mystical-page .brand-logo {
    filter: drop-shadow(0 0 15px rgba(45, 212, 191, 0.4)) !important;
    animation: authLogoPulse 3s infinite ease-in-out;
}

@keyframes authLogoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(45, 212, 191, 0.4));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 25px rgba(45, 212, 191, 0.6));
    }
}

body.auth-mystical-page .brand-title {
    color: var(--auth-text-white) !important;
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}

body.auth-mystical-page .brand-header i {
    color: var(--auth-teal-primary) !important;
    filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.5));
}

/* ============================================
   FORM TITLE
   ============================================ */
body.auth-mystical-page .form-title {
    color: var(--auth-teal-light) !important;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(45, 212, 191, 0.3);
}

/* ============================================
   FORM CONTROLS
   ============================================ */
body.auth-mystical-page .form-control {
    background: var(--auth-input-bg) !important;
    border: 1px solid var(--auth-input-border) !important;
    color: var(--auth-text-white) !important;
    border-radius: 12px;
    height: 3.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.auth-mystical-page .form-control:focus {
    background: rgba(45, 212, 191, 0.12) !important;
    border-color: var(--auth-input-focus-border) !important;
    box-shadow: 0 0 20px var(--auth-input-focus-shadow) !important;
    color: var(--auth-text-white) !important;
    outline: none;
}

body.auth-mystical-page .form-control::placeholder {
    color: var(--auth-text-muted) !important;
    opacity: 0.7;
}

/* Form Floating Labels */
body.auth-mystical-page .form-floating > .form-control {
    height: 3.75rem;
    padding: 1.5rem 1rem 0.5rem 1rem;
}

body.auth-mystical-page .form-floating > label {
    color: var(--auth-text-muted) !important;
    padding: 1rem;
}

body.auth-mystical-page .form-floating > .form-control:focus ~ label,
body.auth-mystical-page .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--auth-teal-light) !important;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Input Group */
body.auth-mystical-page .input-group {
    position: relative;
}

body.auth-mystical-page .input-group-text {
    background: var(--auth-input-bg) !important;
    border: 1px solid var(--auth-input-border) !important;
    border-right: none !important;
    color: var(--auth-teal-primary) !important;
    border-radius: 12px 0 0 12px;
}

body.auth-mystical-page .input-group .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none !important;
}

body.auth-mystical-page .input-group:focus-within .input-group-text {
    border-color: var(--auth-input-focus-border) !important;
    background: rgba(45, 212, 191, 0.12) !important;
}

/* Form Labels */
body.auth-mystical-page .form-label {
    color: var(--auth-text-light) !important;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Form Check (Checkbox) */
body.auth-mystical-page .form-check {
    padding-left: 1.75rem;
}

body.auth-mystical-page .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    background: var(--auth-input-bg) !important;
    border: 1px solid var(--auth-input-border) !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

body.auth-mystical-page .form-check-input:checked {
    background: linear-gradient(135deg, var(--auth-teal-dark) 0%, var(--auth-teal-primary) 100%) !important;
    border-color: var(--auth-teal-primary) !important;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

body.auth-mystical-page .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2) !important;
}

body.auth-mystical-page .form-check-label {
    color: var(--auth-text-muted) !important;
    font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */
body.auth-mystical-page .btn-primary,
body.auth-mystical-page .btn-mystic {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none !important;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-teal-dark) 0%, var(--auth-teal-primary) 100%) !important;
    color: white !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3);
    margin-top: 0.5rem;
}

body.auth-mystical-page .btn-primary::before,
body.auth-mystical-page .btn-mystic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

body.auth-mystical-page .btn-primary:hover::before,
body.auth-mystical-page .btn-mystic:hover::before {
    left: 100%;
}

body.auth-mystical-page .btn-primary:hover,
body.auth-mystical-page .btn-mystic:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.5);
}

body.auth-mystical-page .btn-primary:active,
body.auth-mystical-page .btn-mystic:active {
    transform: scale(0.98);
}

/* Outline Button */
body.auth-mystical-page .btn-outline-primary,
body.auth-mystical-page .btn-outline-mystic {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--auth-teal-primary) !important;
    border-radius: 12px;
    background: transparent !important;
    color: var(--auth-teal-light) !important;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

body.auth-mystical-page .btn-outline-primary:hover,
body.auth-mystical-page .btn-outline-mystic:hover {
    background: rgba(45, 212, 191, 0.1) !important;
    color: var(--auth-text-white) !important;
    transform: translateY(-2px);
}

/* ============================================
   ALERTS
   ============================================ */
body.auth-mystical-page .alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border: none;
}

body.auth-mystical-page .alert-danger,
body.auth-mystical-page .alert-mystic {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

body.auth-mystical-page .alert-success,
body.auth-mystical-page .alert-success-mystic {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #86efac !important;
}

body.auth-mystical-page .alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #fcd34d !important;
}

body.auth-mystical-page .alert-info {
    background: rgba(45, 212, 191, 0.15) !important;
    border: 1px solid rgba(45, 212, 191, 0.3) !important;
    color: var(--auth-teal-light) !important;
}

/* ============================================
   DIVIDER
   ============================================ */
body.auth-mystical-page .divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

body.auth-mystical-page .divider::before,
body.auth-mystical-page .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), transparent);
}

body.auth-mystical-page .divider span {
    padding: 0 1rem;
    color: var(--auth-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SOCIAL BUTTONS
   ============================================ */
body.auth-mystical-page .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    background: var(--auth-input-bg) !important;
    border: 1px solid var(--auth-input-border) !important;
    color: var(--auth-text-light) !important;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

body.auth-mystical-page .social-btn:hover {
    background: rgba(45, 212, 191, 0.15) !important;
    border-color: rgba(45, 212, 191, 0.4) !important;
    color: var(--auth-text-white) !important;
    transform: translateY(-2px);
}

body.auth-mystical-page .social-btn i {
    font-size: 1.25rem;
}

body.auth-mystical-page .social-btn.google-btn i {
    color: #ea4335;
}

body.auth-mystical-page .social-btn.apple-btn i {
    color: #ffffff;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */
body.auth-mystical-page .password-strength {
    margin-top: 0.5rem;
    height: 4px;
    border-radius: 2px;
    background: rgba(45, 212, 191, 0.1);
    overflow: hidden;
}

body.auth-mystical-page .password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.auth-mystical-page .password-strength-bar.weak {
    width: 25%;
    background: #ef4444;
}

body.auth-mystical-page .password-strength-bar.fair {
    width: 50%;
    background: #f59e0b;
}

body.auth-mystical-page .password-strength-bar.good {
    width: 75%;
    background: #10b981;
}

body.auth-mystical-page .password-strength-bar.strong {
    width: 100%;
    background: linear-gradient(90deg, var(--auth-teal-dark), var(--auth-teal-primary));
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

body.auth-mystical-page .password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: var(--auth-text-muted);
}

/* ============================================
   LINKS
   ============================================ */
body.auth-mystical-page a {
    color: var(--auth-teal-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

body.auth-mystical-page a:hover {
    color: var(--auth-text-white);
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

body.auth-mystical-page .text-link {
    color: var(--auth-teal-primary) !important;
    font-weight: 500;
}

body.auth-mystical-page .text-link:hover {
    color: var(--auth-teal-light) !important;
    text-decoration: underline;
}

/* Footer Links */
body.auth-mystical-page .footer-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(45, 212, 191, 0.15);
}

body.auth-mystical-page .footer-links p {
    color: var(--auth-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   TEXT COLORS
   ============================================ */
body.auth-mystical-page .text-muted {
    color: var(--auth-text-muted) !important;
}

body.auth-mystical-page .text-white {
    color: var(--auth-text-white) !important;
}

body.auth-mystical-page h1,
body.auth-mystical-page h2,
body.auth-mystical-page h3,
body.auth-mystical-page h4,
body.auth-mystical-page h5,
body.auth-mystical-page h6 {
    color: var(--auth-text-white);
}

body.auth-mystical-page p {
    color: var(--auth-text-light);
}

/* ============================================
   REGISTER CLOSED STATE
   ============================================ */
body.auth-mystical-page.register-closed .login-card {
    opacity: 0.9;
}

body.auth-mystical-page .register-closed-message {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

body.auth-mystical-page .register-closed-message i {
    color: #fbbf24;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

body.auth-mystical-page .register-closed-message h4 {
    color: #fbbf24 !important;
    margin-bottom: 0.5rem;
}

body.auth-mystical-page .register-closed-message p {
    color: var(--auth-text-muted);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body.auth-mystical-page {
        padding: 1rem;
        align-items: center;
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
    }

    body.auth-mystical-page::before {
        width: 400px;
        height: 400px;
        bottom: -25%;
        left: -30%;
        filter: drop-shadow(0 0 50px rgba(45, 212, 191, 0.6))
                drop-shadow(0 0 80px rgba(20, 184, 166, 0.4));
    }

    body.auth-mystical-page::after {
        width: 350px;
        height: 350px;
        top: -20%;
        right: -25%;
        filter: drop-shadow(0 0 45px rgba(45, 212, 191, 0.5))
                drop-shadow(0 0 70px rgba(20, 184, 166, 0.35));
    }

    body.auth-mystical-page .login-card {
        padding: 1.5rem !important;
        border-radius: 16px !important;
        max-width: 100%;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        display: block !important;
        background: linear-gradient(145deg, rgba(9, 68, 68, 0.95) 0%, rgba(6, 41, 41, 0.98) 100%) !important;
    }

    body.auth-mystical-page .brand-header {
        margin-bottom: 1rem;
    }

    body.auth-mystical-page .brand-logo {
        width: 200px;
        height: 200px;
    }

    body.auth-mystical-page .form-title {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    body.auth-mystical-page .form-group,
    body.auth-mystical-page .mb-3 {
        margin-bottom: 0.875rem !important;
    }

    body.auth-mystical-page .form-control {
        height: 2.875rem;
        font-size: 0.9rem;
        padding: 0.5rem 0.875rem;
    }

    body.auth-mystical-page .btn-primary,
    body.auth-mystical-page .btn-mystic {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    body.auth-mystical-page {
        padding: 0.75rem;
        align-items: center;
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
    }

    body.auth-mystical-page::before {
        width: 300px;
        height: 300px;
        bottom: -30%;
        left: -35%;
    }

    body.auth-mystical-page::after {
        width: 280px;
        height: 280px;
        top: -25%;
        right: -30%;
    }

    body.auth-mystical-page .login-card {
        padding: 1.25rem !important;
        border-radius: 14px !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        display: block !important;
        background: linear-gradient(145deg, rgba(9, 68, 68, 0.95) 0%, rgba(6, 41, 41, 0.98) 100%) !important;
    }

    body.auth-mystical-page .brand-header {
        margin-bottom: 0.75rem;
    }

    body.auth-mystical-page .brand-logo {
        width: 180px;
        height: 180px;
    }

    body.auth-mystical-page .form-title {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    body.auth-mystical-page .form-group,
    body.auth-mystical-page .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    body.auth-mystical-page .form-control {
        height: 2.75rem;
        font-size: 0.875rem;
    }

    body.auth-mystical-page .btn-primary,
    body.auth-mystical-page .btn-mystic {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }

    body.auth-mystical-page .social-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    body.auth-mystical-page .divider {
        margin: 1rem 0;
    }

    body.auth-mystical-page .footer-links {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    body.auth-mystical-page::before,
    body.auth-mystical-page::after {
        animation: none;
    }

    body.auth-mystical-page .login-card {
        animation: none;
    }

    body.auth-mystical-page .brand-logo {
        animation: none;
    }

    body.auth-mystical-page *,
    body.auth-mystical-page *::before,
    body.auth-mystical-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    body.auth-mystical-page .login-card {
        border: 2px solid var(--auth-teal-primary);
    }

    body.auth-mystical-page .form-control {
        border: 2px solid var(--auth-teal-primary);
    }

    body.auth-mystical-page .btn-primary,
    body.auth-mystical-page .btn-mystic {
        border: 2px solid var(--auth-teal-light);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
body.auth-mystical-page ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.auth-mystical-page ::-webkit-scrollbar-track {
    background: var(--auth-bg-darker);
    border-radius: 4px;
}

body.auth-mystical-page ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--auth-teal-dark) 0%, var(--auth-teal-primary) 100%);
    border-radius: 4px;
}

body.auth-mystical-page ::-webkit-scrollbar-thumb:hover {
    background: var(--auth-teal-primary);
}
