/* --- Variables de couleurs --- */
:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.6);
}

/* --- Style Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-primary);
}

/* --- Décoration de fond (Cercles flous) --- */
.background-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.3);
    top: -50px;
    left: -50px;
}

.circle:nth-child(2) {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.2);
    bottom: -100px;
    right: -50px;
}

/* --- Carte de Connexion --- */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-form {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-form h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-form p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* --- Champs de saisie --- */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
    padding-left: 5px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* --- Options et Liens --- */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-link, .register-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover, .register-link a:hover {
    text-decoration: underline;
}

/* --- Bouton --- */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color), #6366f1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.register-link {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Responsivité --- */
@media (max-width: 480px) {
    .login-form {
        padding: 30px 20px;
    }
    
    .login-form h2 {
        font-size: 1.75rem;
    }
}