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

body {
    font-family: 'Instrument Sans', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../ASSETS/skybox.jpg');
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.container {
    max-width: 400px;
    width: 100%;
    margin-bottom: 40px;
}

.login-card {
    background: rgba(234, 234, 234, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.app-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 15px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.app-icon {
    background-image: url('ASSETS/enter-1.png');
    background-size: 40px 40px;
    background-repeat: no-repeat;
    background-position: center;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 400;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-wrapper {
    position: relative;
    background: #f5f5f5;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.user-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.lock-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM15.1 8H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>');
}

.input-field {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    outline: none;
    border-radius: 15px;
}

.input-field::placeholder {
    color: #999;
    font-weight: 400;
}

.input-wrapper:focus-within .input-icon {
    opacity: 0.8;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: #000;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.emergency-card {
    background: rgba(234, 234, 234, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 2px solid #D90404;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(217, 4, 4, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.emergency-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.emergency-button {
    width: 100%;
    padding: 14px;
    background: #D90404;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(217, 4, 4, 0.3);
}

.emergency-button:hover {
    background: #b30303;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(217, 4, 4, 0.4);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    animation: slideUpFooter 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes slideUpFooter {
    to {
        transform: translateY(0);
    }
}

.footer-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 25px;
        margin: 0 10px 30px;
    }
    
    .container {
        margin-bottom: 80px;
    }

    .title {
        font-size: 20px;
    }
}

/* Animations supplémentaires */
.bounce {
    animation: bounce 0.6s ease;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 4, 4, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(217, 4, 4, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 4, 4, 0);
    }
}