/* ==========================================================================
   REGISTER.HTML — feuille dédiée (refonte du 21/10/2026) : règles
   d'origine (sans la copie de palette) puis habillage « route de nuit ».
   ========================================================================== */


        /* ============ VARIABLES ============ */
                
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }
        
        /* ============ ANIMATED BACKGROUND ============ */
        .bg-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 0;
        }
        
        .bg-glow {
            position: fixed;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.15;
            z-index: 0;
            pointer-events: none;
        }
        
        .bg-glow.glow-1 {
            width: 400px;
            height: 400px;
            background: var(--accent-blue);
            top: -100px;
            right: -100px;
            animation: float-glow 8s ease-in-out infinite;
        }
        
        .bg-glow.glow-2 {
            width: 300px;
            height: 300px;
            background: var(--accent-purple);
            bottom: -50px;
            left: -50px;
            animation: float-glow 10s ease-in-out infinite reverse;
        }
        
        @keyframes float-glow {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(30px, -30px) scale(1.1); }
        }
        
        /* ============ CONTAINER ============ */
        .register-container {
            position: relative;
            z-index: 1;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 40px;
            max-width: 480px;
            width: 100%;
            box-shadow: var(--shadow-lg);
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            max-height: 95vh;
            overflow-y: auto;
        }
        
        .register-container::-webkit-scrollbar {
            width: 6px;
        }
        
        .register-container::-webkit-scrollbar-track {
            background: var(--bg-input);
            border-radius: 3px;
        }
        
        .register-container::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 3px;
        }
        
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(40px) scale(0.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        /* ============ HEADER ============ */
        .register-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .register-logo {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            font-weight: 900;
            color: #0f0f1a;
            box-shadow: 0 0 40px rgba(96, 165, 250, 0.2);
            animation: pulse-logo 3s ease-in-out infinite;
        }
        
        @keyframes pulse-logo {
            0%, 100% { box-shadow: 0 0 40px rgba(96, 165, 250, 0.2); }
            50% { box-shadow: 0 0 60px rgba(96, 165, 250, 0.4); }
        }
        
        .register-header h1 {
            font-size: 26px;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 5px;
        }
        
        .register-header p {
            color: var(--text-muted);
            font-size: 14px;
        }
        
        /* ============ MESSAGES ============ */
        .message {
            display: none;
            padding: 14px 18px;
            border-radius: 10px;
            font-size: 13px;
            margin-bottom: 15px;
            animation: slideDown 0.3s ease;
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .message.error {
            background: rgba(248, 113, 113, 0.08);
            border: 1px solid rgba(248, 113, 113, 0.2);
            color: var(--accent-red);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .message.success {
            background: rgba(52, 211, 153, 0.08);
            border: 1px solid rgba(52, 211, 153, 0.2);
            color: var(--accent-green);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Information : les inscriptions sont fermées, un administrateur crée les comptes */
        .message.info {
            background: rgba(96, 165, 250, 0.08);
            border: 1px solid rgba(96, 165, 250, 0.25);
            color: var(--accent-blue, #60a5fa);
            display: flex;
            align-items: flex-start;
            gap: 10px;
            line-height: 1.6;
        }
        .message.info a { color: var(--accent-teal, #2dd4bf); font-weight: 600; }
        
        .message i {
            font-size: 18px;
        }
        
        /* ============ FORM ============ */
        .form-group {
            margin-bottom: 18px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
        }
        
        .form-group label .required {
            color: var(--accent-red);
            margin-left: 2px;
        }
        
        .input-group {
            position: relative;
        }
        
        .input-group .input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 16px;
            transition: color 0.3s ease;
        }
        
        .input-group:focus-within .input-icon {
            color: var(--accent-blue);
        }
        
        .form-input, .form-select {
            width: 100%;
            padding: 12px 16px 12px 44px;
            background: var(--bg-input);
            color: var(--text-primary);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s ease;
        }
        
        .form-input:focus, .form-select:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
        }
        
        .form-input.error {
            border-color: var(--accent-red);
            box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1);
        }
        
        .form-input.success {
            border-color: var(--accent-green);
            box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
        }
        
        .form-input::placeholder {
            color: var(--text-muted);
        }
        
        .form-select {
            appearance: none;
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            padding-right: 40px;
        }
        
        .toggle-password {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 5px;
            transition: color 0.3s ease;
        }
        
        .toggle-password:hover {
            color: var(--text-primary);
        }
        
        /* ============ PASSWORD STRENGTH ============ */
        .password-strength {
            margin-top: 8px;
        }
        
        .strength-bar {
            height: 4px;
            background: var(--bg-input);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 4px;
        }
        
        .strength-fill {
            height: 100%;
            width: 0%;
            border-radius: 4px;
            transition: width 0.4s ease, background 0.4s ease;
        }
        
        .strength-text {
            font-size: 11px;
            color: var(--text-muted);
            transition: color 0.4s ease;
        }
        
        /* ============ CHECKBOX ============ */
        .checkbox-container {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            padding: 4px 0;
        }
        
        .checkbox-container input {
            display: none;
        }
        
        .checkmark {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            position: relative;
            flex-shrink: 0;
            margin-top: 1px;
            transition: all 0.3s ease;
        }
        
        .checkbox-container:hover .checkmark {
            border-color: var(--accent-blue);
        }
        
        .checkbox-container input:checked + .checkmark {
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            border-color: var(--accent-blue);
        }
        
        .checkbox-container input:checked + .checkmark::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid #0f0f1a;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }
        
        .checkbox-container a {
            color: var(--accent-blue);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .checkbox-container a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }
        
        .checkbox-container .error-text {
            color: var(--accent-red);
            font-size: 11px;
            display: none;
        }
        
        .checkbox-container.error .error-text {
            display: block;
        }
        
        .checkbox-container.error .checkmark {
            border-color: var(--accent-red);
        }
        
        /* ============ BUTTON ============ */
        .btn-register {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
            color: #0f0f1a;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 5px;
        }
        
        .btn-register:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(52, 211, 153, 0.3);
        }
        
        .btn-register:active {
            transform: scale(0.98);
        }
        
        .btn-register:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }
        
        .btn-register .spinner {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* ============ LINKS ============ */
        .login-link {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: var(--text-muted);
        }
        
        .login-link a {
            color: var(--accent-blue);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }
        
        .login-link a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }
        
        .back-link {
            display: block;
            text-align: center;
            margin-top: 15px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 13px;
            transition: color 0.3s ease;
        }
        
        .back-link:hover {
            color: var(--accent-blue);
        }
        
        .back-link i {
            margin-right: 6px;
        }
        
        /* ============ NOTIFICATION ============ */
        .notification {
            position: fixed;
            bottom: 30px;
            right: 30px;
            padding: 16px 24px;
            border-radius: 14px;
            box-shadow: var(--shadow-lg);
            z-index: 9999;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.05);
            max-width: 400px;
        }
        
        .notification.success {
            background: rgba(52, 211, 153, 0.15);
            border-color: rgba(52, 211, 153, 0.2);
            color: var(--accent-green);
        }
        
        .notification.error {
            background: rgba(248, 113, 113, 0.15);
            border-color: rgba(248, 113, 113, 0.2);
            color: var(--accent-red);
        }
        
        .notification.info {
            background: rgba(96, 165, 250, 0.15);
            border-color: rgba(96, 165, 250, 0.2);
            color: var(--accent-blue);
        }
        
        .notification .notif-icon {
            font-size: 22px;
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes slideOut {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(50px); }
        }
        
        /* ============ RESPONSIVE ============ */
        @media (max-width: 480px) {
            .register-container {
                padding: 25px 20px;
                border-radius: 16px;
            }
            
            .register-header h1 {
                font-size: 22px;
            }
            
            .register-logo {
                width: 60px;
                height: 60px;
                font-size: 28px;
            }
            
            .form-input, .form-select {
                padding: 11px 14px 11px 40px;
                font-size: 13px;
            }
            
            .btn-register {
                font-size: 14px;
                padding: 13px;
            }
        }
    
/* Habillage « route de nuit » (21/10/2026) : le socle hub.css porte la palette. */
body { background-color: var(--bg-primary); }
.register-card, .register-container, .card { border-radius: var(--radius-2xl); border: 1px solid rgba(var(--rgb-ambre), .22); background: linear-gradient(160deg, rgba(var(--rgb-bg-card), .96), rgba(var(--rgb-bg-sidebar), .96)); box-shadow: var(--shadow-lg); }
h1, h2, .register-title { font-family: 'Barlow Condensed','Inter',sans-serif; text-transform: uppercase; font-weight: 800; color: var(--text-primary); }
.form-input, input, select { border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-primary); }
.form-input:focus-visible, input:focus-visible { outline: none; border-color: var(--accent-ambre); box-shadow: var(--focus-ring); }
.btn-register, button[type="submit"], .btn-primary { border-radius: var(--radius-full); border: 0; background: linear-gradient(135deg, var(--accent-ambre), var(--accent-orange)); color: #1b1202; font-weight: 800; }
.message { border-radius: var(--radius-md); }
.message-info { display: block; margin-bottom: 22px; }
.cache { display: none; }
.verif-zone { display: none; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
