/* MUHU Gate Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
}

/* Background avec blur */
.gate-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.4);
    transform: scale(1.1);
    z-index: -1;
}

/* Container principal */
.gate-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gate-container.success {
    opacity: 0;
    transform: scale(1.1);
}

.gate-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

/* Logo */
.gate-logo {
    width: 120px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px rgba(202, 163, 82, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

/* Tagline */
.gate-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #caa352, #8b5a2b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    line-height: 1.2;
}

.gate-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 50px;
}

/* Form */
.gate-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Input wrapper avec glow */
.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.gate-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    outline: none;
}

.gate-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

.gate-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(202, 163, 82, 0.5);
    box-shadow: 0 0 30px rgba(202, 163, 82, 0.15);
}

.input-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: radial-gradient(ellipse, rgba(202, 163, 82, 0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gate-input:focus + .input-glow {
    opacity: 1;
}

/* Shake animation */
.gate-input.shake {
    animation: shake 0.5s ease;
    border-color: #ff4444 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

/* Button */
.gate-button {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a0a0a;
    background: linear-gradient(135deg, #caa352 0%, #8b5a2b 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.gate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(202, 163, 82, 0.3);
}

.gate-button:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.gate-button:hover .arrow-icon {
    transform: translateX(5px);
}

/* Error message */
.gate-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    min-height: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.gate-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.gate-footer {
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Copyright */
.gate-copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.gate-copyright p {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin: 0;
}

.gate-copyright .gate-services {
    margin-top: 6px;
    font-size: 0.7rem;
    color: rgba(202, 163, 82, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .gate-logo {
        width: 100px;
        margin-bottom: 30px;
    }
    
    .gate-tagline {
        font-size: 1.5rem;
    }
    
    .gate-subtitle {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }
    
    .gate-input {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .gate-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Particules animées (optionnel) */
.gate-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkle {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}
