:root {
    --bg-dark: #0d0f14;
    --bg-darker: #13161e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #686868;
    --border-color: #1e2128;
    --primary-color: #6f00ff;
    --discord-color: #5865F2;
    --logo-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- Décorations d'arrière-plan --- */
.bg-decoration {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--primary-color);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.top-left {
    top: 10%;
    left: 10%;
}

.bottom-right {
    bottom: 10%;
    right: 10%;
}

/* --- Carte de connexion --- */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 2;
}

.login-card {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 45px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(135deg, var(--primary-color), var(--discord-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.2;
}

/* --- Logo et Image --- */
.login-logo {
    width: 70px;
    height: 70px;
    background: var(--logo-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8; /* Ajustable selon le rendu voulu avec l'icône */
}

.logo-icon {
    font-size: 32px;
    color: white;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* --- Typographie --- */
.login-card h1 {
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* --- Bouton Discord --- */
.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--discord-color);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background-color: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.discord-btn:active {
    transform: translateY(-1px);
}

/* --- Message d'erreur --- */
.error-msg {
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: #ff5555;
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}