/* Thème sombre avec lueur violette subtile et arrière-plan design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0816;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Arrière-plan design : dégradé radial + formes floues */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 60% 20%, #a259ff44 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, #6c38b144 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, #a259ff55 0%, transparent 60%);
}

body::after {
    content: '';
    position: fixed;
    left: 50%;
    top: 60%;
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, #a259ff33 0%, transparent 70%);
    filter: blur(30px);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 430px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(20, 16, 40, 0.98);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 0 16px 0 #a259ff33, 0 2px 8px #0008;
    border: 1.5px solid #2d1846;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 80px;
    background: radial-gradient(ellipse at center, #a259ff44 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #a259ff;
    text-shadow: 0 0 4px #a259ff55;
}

.nav-brand i {
    font-size: 2rem;
    color: #a259ff;
    filter: drop-shadow(0 0 4px #a259ff55);
}

.auth-header h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 0 6px #a259ff33, 0 2px 8px #0008;
}

.auth-header p {
    color: #bdb7d6;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.auth-form {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #bdb7d6;
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #2d1846;
    border-radius: 10px;
    font-size: 1rem;
    background: #181325;
    color: #fff;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 0 0 0 #a259ff;
}

.form-group input:focus {
    outline: none;
    border-color: #a259ff;
    background: #221a36;
    box-shadow: 0 0 6px 0 #a259ff55;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #a259ff;
    transform: scale(1.15);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,2,.3,1);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #a259ff 0%, #6c38b1 100%);
    color: #fff;
    box-shadow: 0 0 8px 0 #a259ff33;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #6c38b1 0%, #a259ff 100%);
    box-shadow: 0 0 16px 0 #a259ff66, 0 2px 8px #0008;
    transform: translateY(-2px) scale(1.03);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
    background: #1a1327;
    border-left: 4px solid #a259ff;
    color: #fff;
    box-shadow: 0 0 4px #a259ff22;
}

.alert-error {
    border-left: 4px solid #ff4f7a;
    background: #2a1420;
    color: #ff4f7a;
    box-shadow: 0 0 4px #ff4f7a22;
}

.alert-success {
    border-left: 4px solid #38e38a;
    background: #142a1a;
    color: #38e38a;
    box-shadow: 0 0 4px #38e38a22;
}

.alert i {
    font-size: 1.2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #221a36;
    position: relative;
    z-index: 1;
}

.auth-footer p {
    margin-bottom: 0.5rem;
    color: #bdb7d6;
}

.auth-footer a {
    color: #a259ff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s, text-shadow 0.2s;
    position: relative;
    text-shadow: 0 0 4px #a259ff33;
}

.auth-footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px #a259ff;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a259ff, #6c38b1);
    transition: width 0.3s;
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 0.7rem;
        margin: 10px;
    }
    .auth-header h1 {
        font-size: 1.4rem;
    }
    .nav-brand {
        font-size: 1.1rem;
    }
    .nav-brand i {
        font-size: 1.3rem;
    }
} 