/* public/css/login.css - TADASHI SYSTEM LOGIN PAGE */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #0f1729 100%);
    position: relative;
}

/* === Animated Background === */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Grille hexagonale animee */
.hex-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, rgba(0, 212, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.05) 87.5%, rgba(0, 212, 255, 0.05)),
        linear-gradient(150deg, rgba(0, 212, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.05) 87.5%, rgba(0, 212, 255, 0.05)),
        linear-gradient(30deg, rgba(0, 212, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.05) 87.5%, rgba(0, 212, 255, 0.05)),
        linear-gradient(150deg, rgba(0, 212, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.05) 87.5%, rgba(0, 212, 255, 0.05)),
        linear-gradient(60deg, rgba(210, 20, 37, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(210, 20, 37, 0.03) 75%, rgba(210, 20, 37, 0.03)),
        linear-gradient(60deg, rgba(210, 20, 37, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(210, 20, 37, 0.03) 75%, rgba(210, 20, 37, 0.03));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    animation: hexMove 20s linear infinite;
}

@keyframes hexMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(140px); }
}

/* Particules flottantes */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: #00d4ff;
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.particle:nth-child(1) { width: 3px; height: 3px; left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { width: 2px; height: 2px; left: 25%; animation-duration: 12s; animation-delay: 2s; }
.particle:nth-child(3) { width: 4px; height: 4px; left: 40%; animation-duration: 18s; animation-delay: 1s; }
.particle:nth-child(4) { width: 2px; height: 2px; left: 60%; animation-duration: 14s; animation-delay: 3s; }
.particle:nth-child(5) { width: 3px; height: 3px; left: 75%; animation-duration: 16s; animation-delay: 0s; }
.particle:nth-child(6) { width: 2px; height: 2px; left: 90%; animation-duration: 13s; animation-delay: 2s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 15%; animation-duration: 17s; animation-delay: 1s; }
.particle:nth-child(8) { width: 4px; height: 4px; left: 55%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(9) { width: 2px; height: 2px; left: 70%; animation-duration: 19s; animation-delay: 2s; }
.particle:nth-child(10) { width: 3px; height: 3px; left: 85%; animation-duration: 14s; animation-delay: 1s; }

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Scan lines effet */
.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 212, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scan 8s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* === Login Container === */
.login-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Logo TADASHI SYSTEM */
.login-logo {
    text-align: center;
    margin-bottom: 50px;
    animation: logoGlow 3s ease-in-out infinite;
}

.login-logo h1 {
    font-size: 3.5em;
    font-weight: 900;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2);
    margin-bottom: 10px;
}

.login-logo .subtitle {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 30px rgba(0, 212, 255, 0.4),
            0 0 40px rgba(0, 212, 255, 0.2);
    }
    50% {
        text-shadow:
            0 0 20px rgba(0, 212, 255, 1),
            0 0 30px rgba(0, 212, 255, 0.8),
            0 0 40px rgba(0, 212, 255, 0.6),
            0 0 50px rgba(0, 212, 255, 0.4);
    }
}

/* Formulaire de connexion */
.login-form-wrapper {
    width: 100%;
    max-width: 450px;
    background: rgba(10, 14, 39, 0.85);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 50px 40px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.2),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        border-color: rgba(0, 212, 255, 0.3);
        box-shadow:
            0 0 30px rgba(0, 212, 255, 0.2),
            inset 0 0 30px rgba(0, 212, 255, 0.05);
    }
    50% {
        border-color: rgba(0, 212, 255, 0.6);
        box-shadow:
            0 0 40px rgba(0, 212, 255, 0.4),
            inset 0 0 40px rgba(0, 212, 255, 0.1);
    }
}

/* Coins decores */
.corner-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #00d4ff;
}

.corner-decoration.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.corner-decoration.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.corner-decoration.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Titre du formulaire */
.login-form-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

/* Alerte d'erreur */
.login-alert {
    background: rgba(210, 20, 37, 0.1);
    border: 2px solid #d21425;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    color: #d21425;
    font-size: 0.9em;
    text-align: center;
    animation: alertPulse 1s ease-in-out;
}

@keyframes alertPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* Message utilisateur connecte */
.login-user-info {
    background: rgba(73, 230, 150, 0.1);
    border: 2px solid #49e696;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    color: #49e696;
    font-size: 0.9em;
    text-align: center;
}

.login-user-info a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.login-user-info a:hover {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* Groupes de formulaire */
.login-form-group {
    margin-bottom: 30px;
}

.login-form-label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.login-form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(47, 140, 163, 0.1);
    border: 2px solid rgba(47, 140, 163, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.login-form-input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(47, 140, 163, 0.15);
    box-shadow:
        0 0 15px rgba(0, 212, 255, 0.3),
        inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.login-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Checkbox Remember Me */
.login-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.login-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #00d4ff;
}

.login-checkbox-group label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.login-checkbox-group label:hover {
    color: #00d4ff;
}

/* Bouton Sign In */
.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    color: #00d4ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.login-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.2) 100%);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.6),
        inset 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.login-btn:hover:before {
    width: 300px;
    height: 300px;
}

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

/* Footer */
.login-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.4);
    z-index: 10;
    letter-spacing: 1px;
}

.login-footer .version {
    color: #00d4ff;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .login-logo h1 {
        font-size: 2.5em;
        letter-spacing: 4px;
    }

    .login-form-wrapper {
        padding: 40px 30px;
        max-width: 90%;
    }

    .login-form-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .login-logo h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }

    .login-logo .subtitle {
        font-size: 0.7em;
    }

    .login-form-wrapper {
        padding: 30px 20px;
    }
}
