:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #8b5cf6;
    --bg: #0f172a;
    --card: rgba(15, 23, 42, 0.92);
    --glass: rgba(30, 41, 59, 0.8);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: radial-gradient(600px circle at 20% 20%, rgba(99, 102, 241, 0.35), transparent 50%), radial-gradient(500px circle at 80% 10%, rgba(139, 92, 246, 0.35), transparent 52%), radial-gradient(520px circle at 70% 80%, rgba(34, 211, 238, 0.25), transparent 55%), var(--bg);
    position: relative;
    overflow: hidden;
}

.login-card {
    background: var(--card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 460px;
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo-container {
    margin-bottom: 20px;
}

.login-header .logo {
    max-width: 110px;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

.login-header h1 {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: var(--muted);
    font-size: 1rem;
}

.error-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecdd3;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::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;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.5);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
}

.back-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.back-link:hover {
    color: var(--text);
    text-decoration: underline;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header .logo {
        max-width: 80px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
}

