:root {
    --primary: #800000;    /* Deep Red */
    --gold: #FFD700;       /* Gold */
    --gold-dim: #C5A000;
    --dark: #0f172a;       /* Deep Slate */
    --darker: #020617;     /* Almost Black */
    --card-bg: rgba(30, 41, 59, 0.7); /* Glassy Card */
    --card-border: rgba(255, 215, 0, 0.2);
    --text: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--darker);
    /* Matching the main site's premium feel */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(128, 0, 0, 0.2), transparent 50%),
        linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.95)),
        url('../logo.jpg'); /* Adjust path if logo is in a different folder relative to CSS */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-area {
    margin-bottom: 2rem;
}

.logo-area img {
    height: 70px;
    width: auto;
    border-radius: 12px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

h2 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

p.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 4px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.error-msg {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.links {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 0 5px;
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    color: var(--gold);
}

.back-home {
    display: block;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s;
}

.back-home:hover {
    opacity: 1;
    color: white;
    transform: translateX(-5px);
    display: inline-block;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    .login-card {
        padding: 2rem 1.5rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}