/* ============================================
   VARIABLES - COULEURS JOJ DAKAR 2026
   ============================================ */
:root {
    /* Couleurs principales (inspirées de la mascotte AYO) */
    --joj-orange: #FF8C42;
    --joj-orange-dark: #E67A32;
    --joj-orange-light: #FFB87A;
    
    --joj-green: #4CAF50;
    --joj-green-dark: #388E3C;
    --joj-green-light: #81C784;
    
    --joj-yellow: #FFC107;
    --joj-yellow-dark: #FFA000;
    --joj-yellow-light: #FFD54F;
    
    --joj-red: #F44336;
    --joj-blue: #2196F3;
    
    /* Couleurs neutres */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Olympiques */
    --olympic-blue: #0085C7;
    --olympic-yellow: #F4C300;
    --olympic-black: #000000;
    --olympic-green: #009F3D;
    --olympic-red: #DF0024;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
}

/* ============================================
   PAGE DE CONNEXION
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: bgScroll 60s linear infinite;
    opacity: 0.3;
}

@keyframes bgScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, -60px); }
}

.login-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    z-index: 1;
}

.login-box {
    flex: 1;
    max-width: 500px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-header {
    background: var(--white);
    padding: 40px 40px 30px;
    text-align: center;
    border-bottom: 3px solid var(--joj-orange);
}

.logo-container {
    margin-bottom: 20px;
}

.logo-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 5px 20px rgba(255, 140, 66, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Garder aussi l'ancien style pour compatibilité */
.logo-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--joj-orange);
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.login-header .subtitle {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.mascot-name {
    display: inline-block;
    background: var(--joj-orange);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.login-form {
    padding: 40px;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-info {
    background: #E3F2FD;
    color: #1976D2;
    border-left: 4px solid #2196F3;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--joj-orange);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--joj-orange);
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--joj-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--joj-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 66, 0.3);
}

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

.btn-block {
    width: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.link-secondary {
    color: var(--joj-orange);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.link-secondary:hover {
    text-decoration: underline;
}

.login-footer {
    padding: 30px;
    background: var(--gray-50);
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.olympic-rings {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.ring {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid;
}

.ring-blue { border-color: var(--olympic-blue); }
.ring-yellow { border-color: var(--olympic-yellow); }
.ring-black { border-color: var(--olympic-black); }
.ring-green { border-color: var(--olympic-green); }
.ring-red { border-color: var(--olympic-red); }

.login-footer p {
    color: var(--gray-600);
    font-size: 13px;
}

/* ============================================
   SIDEBAR D'INFORMATIONS
   ============================================ */
.info-sidebar {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 20px;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
        align-items: center;
    }
    
    .info-sidebar {
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .login-box {
        border-radius: 15px;
    }
    
    .login-header {
        padding: 30px 20px 20px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .info-sidebar {
        display: none;
    }
}