/* Authentication Pages - Premium Dark Vampire Theme */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600&display=swap');

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 25%, #0d0d0d 50%, #1a0a0f 75%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating Particles */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(139, 0, 0, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(139, 0, 0, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(156, 39, 176, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(139, 0, 0, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(156, 39, 176, 0.2), transparent);
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* Mist Effect */
.auth-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    right: -50%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.08) 0%, transparent 70%);
    animation: mistPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mistPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ============================================
   AUTH BOX - GLASSMORPHISM
   ============================================ */
.auth-box {
    background: linear-gradient(145deg,
            rgba(30, 30, 30, 0.95) 0%,
            rgba(20, 20, 20, 0.98) 50%,
            rgba(25, 15, 20, 0.95) 100%);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(139, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    animation: boxFloat 6s ease-in-out infinite;
}

@keyframes boxFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Decorative Border Glow */
.auth-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(139, 0, 0, 0.5),
            transparent,
            rgba(156, 39, 176, 0.3),
            transparent,
            rgba(139, 0, 0, 0.5));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.auth-box:hover::before {
    opacity: 1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        filter: blur(10px);
    }

    50% {
        filter: blur(15px);
    }
}

/* ============================================
   LOGO STYLING
   ============================================ */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    perspective: 1000px;
}

.auth-logo {
    width: 130px;
    height: 130px;
    border-radius: 16px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 0, 0, 0.4),
        0 0 100px rgba(139, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.6),
            0 0 60px rgba(139, 0, 0, 0.4),
            0 0 100px rgba(139, 0, 0, 0.2);
    }

    50% {
        box-shadow:
            0 15px 50px rgba(0, 0, 0, 0.7),
            0 0 80px rgba(139, 0, 0, 0.5),
            0 0 120px rgba(139, 0, 0, 0.3);
    }
}

.auth-logo:hover {
    transform: scale(1.1) rotateY(5deg);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(139, 0, 0, 0.6),
        0 0 150px rgba(139, 0, 0, 0.4);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.auth-box h1 {
    font-family: 'Cinzel', serif;
    color: #8b0000;
    text-align: center;
    margin-bottom: 0.25rem;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow:
        0 0 20px rgba(139, 0, 0, 0.5),
        0 0 40px rgba(139, 0, 0, 0.3);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(139, 0, 0, 0.5), 0 0 40px rgba(139, 0, 0, 0.3);
    }

    50% {
        text-shadow: 0 0 30px rgba(139, 0, 0, 0.7), 0 0 60px rgba(139, 0, 0, 0.4);
    }
}

.auth-box h2 {
    font-family: 'Raleway', sans-serif;
    color: rgba(200, 200, 200, 0.8);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* ============================================
   FORM STYLING
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Raleway', sans-serif;
    color: rgba(200, 200, 200, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: rgba(139, 0, 0, 0.9);
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 100, 100, 0.3);
    color: #e0e0e0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-group input::placeholder {
    color: rgba(150, 150, 150, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(139, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.5);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 0, 0, 0.2);
}

.form-group small {
    display: block;
    color: rgba(150, 150, 150, 0.6);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-family: 'Raleway', sans-serif;
}

/* ============================================
   MESSAGES
   ============================================ */
.error-message {
    background: linear-gradient(135deg, rgba(180, 40, 40, 0.9) 0%, rgba(139, 0, 0, 0.9) 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
    border: 1px solid rgba(255, 100, 100, 0.3);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.success-message {
    background: linear-gradient(135deg, rgba(40, 120, 60, 0.9) 0%, rgba(30, 100, 50, 0.9) 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
    border: 1px solid rgba(100, 200, 100, 0.3);
}

/* ============================================
   BUTTON STYLING
   ============================================ */
.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b0000 0%, #660000 50%, #8b0000 100%);
    background-size: 200% 100%;
    color: white;
    border: 1px solid rgba(139, 0, 0, 0.5);
    padding: 1rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 0.5rem;
    box-shadow:
        0 4px 20px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.auth-btn:hover:not(:disabled)::before {
    left: 100%;
}

.auth-btn:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(139, 0, 0, 0.6),
        0 0 50px rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #444 0%, #333 100%);
}

/* ============================================
   AUTH LINKS
   ============================================ */
.auth-links {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(100, 100, 100, 0.2);
}

.auth-links p {
    margin: 0.75rem 0;
    color: rgba(180, 180, 180, 0.6);
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
}

.auth-links a {
    color: rgba(180, 100, 100, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(139, 0, 0, 0.8);
    transition: width 0.3s ease;
}

.auth-links a:hover {
    color: rgba(200, 100, 100, 1);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.auth-links a:hover::after {
    width: 100%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 600px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-box {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .auth-logo {
        width: 100px;
        height: 100px;
    }

    .auth-box h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .auth-box h2 {
        font-size: 0.85rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
    }

    .form-group input {
        padding: 0.875rem 1rem;
    }

    .auth-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   BLOOD DRIP ANIMATION (OPTIONAL)
   ============================================ */
@keyframes bloodDrip {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}