/* Style simple pour la page de login */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    color: #e6fffb;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Background */

    .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 204, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}


.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 136, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0, 204, 255, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -100px); }
}
/* Particules supprimées pour simplicité */

/* Layout sans container */

.login-box:hover::before {
    opacity: 1;
}

/* En-tête simple */
.brand-header {
    margin-bottom: 40px;
    text-align: center;
}

.brand-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.cloud-icon {
    width: 80px;
    height: 80px;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 10px;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 300;
}

/* Affichage du PIN neon */
.pin-display {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.pin-dots {
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.dot.filled {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.dot.filled {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.dot.filled .dot-glow {
    transform: translate(-50%, -50%) scale(1);
}

/* Clavier numérique simple */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 300px;
    margin: 20px auto 0;
}

.key {
    width: 70px;
    height: 70px;
    border: 1px solid #333;
    background: rgba(36, 36, 36, 0.8);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key:hover {
    background: rgba(60, 60, 60, 0.8);
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.key:active {
    transform: scale(0.95);
}

.key:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.key:hover .key-glow {
    opacity: 1;
}

.key:hover .key-number {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.key:active {
    transform: translateY(-1px);
    background: rgba(0, 255, 136, 0.2);
}

.key.clear {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

.key.clear:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.5);
    box-shadow: 0 10px 25px rgba(255, 100, 100, 0.2);
}

.clear-glow {
    background: radial-gradient(circle, rgba(255, 100, 100, 0.3) 0%, transparent 70%) !important;
}

.key.enter {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
}

.key.enter:hover {
    background: rgba(0, 255, 136, 0.25);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.enter-glow {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.4) 0%, transparent 70%) !important;
}

/* Message d'erreur simple */
.error {
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid #ff6464;
    color: #ff6464;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.2);
}

/* Empêcher tout mouvement du clavier et éléments principaux lors d'erreurs */
.keypad, .key, .pin-display, .brand-header {
    transform: none !important;
    animation: none !important;
}

/* Classe pour stabiliser les éléments */
.no-shake {
    transform: none !important;
    animation: none !important;
}

/* Effets de fond supprimés */

/* Responsive pour mobile */
@media (max-width: 768px) {
    .login-box {
        width: 95vw;
        padding: 35px 25px;
    }
    
    .cloud-icon {
        width: 70px;
        height: 70px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .key {
        width: 65px;
        height: 65px;
        font-size: 1.3rem;
    }
    
    .keypad {
        gap: 12px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px 10px;
    }
    
    .cloud-icon {
        width: 100px;
        height: 100px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .key {
        width: 90px;
        height: 90px;
        font-size: 1.2rem;
    }
    
    .keypad {
        gap: 10px;
        max-width: auto;
    }
}

      /* Désactiver TOUTES les interactions web typiques */
        * {
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
            -webkit-touch-callout: none !important;
            -webkit-tap-highlight-color: transparent !important;
            -webkit-highlight: none !important;
            outline: none !important;
        }
        
        /* Désactiver zoom sur double-tap */
        * {
            touch-action: manipulation !important;
        }
        
        /* Désactiver menu contextuel sur images */
        img {
            -webkit-touch-callout: none !important;
            -webkit-user-select: none !important;
            -khtml-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
            pointer-events: auto !important;
            -webkit-user-drag: none !important;
            -khtml-user-drag: none !important;
            -moz-user-drag: none !important;
            -o-user-drag: none !important;
        }
        
        /* Autoriser seulement les éléments interactifs nécessaires */
        button, a, input, textarea, select {
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
            -webkit-touch-callout: none !important;
            touch-action: manipulation !important;
        }
        
        /* Permettre la saisie dans les champs de texte */
        input[type="text"], input[type="email"], textarea {
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            user-select: text !important;
        }
        
       
        
        /* Style app native - pas de curseur sur mobile */
        @media (max-width: 768px) {
            * {
                cursor: default !important;
            }
            
            button, a {
                cursor: default !important;
            }
        }
        
        /* Désactiver animations au focus pour éviter le comportement web */
        *:focus {
            outline: none !important;
            -webkit-tap-highlight-color: transparent !important;
        }
        
        /* Masquer les barres de scroll sur webkit */
        ::-webkit-scrollbar {
            display: none;
        }
        
        /* Support pour Firefox */
        html {
            scrollbar-width: none;
        }