/* Premium Cinematic Design System - Eastern University CMS */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-hue: 220;
    /* Deep Blue Hue */
    --accent-hue: 45;
    /* Amber */

    --primary-color: hsl(var(--primary-hue), 90%, 35%);
    --primary-dark: hsl(var(--primary-hue), 90%, 20%);
    --accent-color: hsl(var(--accent-hue), 100%, 50%);

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --text-light: #ffffff;
    --text-dark: #1a1a1a;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}

/* -----------------------------------------------------
   Cinematic Background Animation
----------------------------------------------------- */
body.auth-page {
    background: linear-gradient(-45deg, #051937, #004d7a, #008793, #00bf72);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* -----------------------------------------------------
   Glassmorphism Card
----------------------------------------------------- */
.cinema-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cinema-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    transform: rotate(45deg);
}

.cinema-logo {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 15px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.cinema-title {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cinema-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* -----------------------------------------------------
   Floating Label Inputs
----------------------------------------------------- */
.floating-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle fill */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.floating-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 171, 0, 0.15);
}

.floating-label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
}

.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--accent-color);
    background: var(--primary-dark);
    /* Hack to hide border line behind label */
    border-radius: 4px;
}

/* -----------------------------------------------------
   Modern Button
----------------------------------------------------- */
.btn-cinema {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #ff9100);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 171, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.btn-cinema:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 171, 0, 0.5);
}

/* -----------------------------------------------------
   Utilities
----------------------------------------------------- */
.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.auth-links a:hover {
    color: white;
    border-bottom-style: solid;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Backwards Compatibility for Dashboard */
/* We keep some basic styles so we don't break the dashboard while focusing on login */
.header,
.deznav {
    /* inherits generic body font but colors might need tweaking if shared */
    /* Keeping it simple for now to prioritize Login goal */
}

/* Ensure dashboard doesn't get the auth body style */
body:not(.auth-page) {
    background: #f4f7f6;
    color: #333;
}