/* Styles spécifiques pour la page de connexion */
.login-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    padding-top: calc(64px + 2rem); /* Hauteur header mobile + padding */
    position: relative;
    overflow: hidden;
}

/* Effets de fond animés */
.login-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.login-bg-effects::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        hsla(48, 100%, 50%, 0.05) 0%, 
        hsla(210, 45%, 8%, 0.1) 50%, 
        hsla(24, 100%, 50%, 0.05) 100%
    );
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.login-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 80%; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { top: 40%; right: 10%; animation-delay: 4s; }
.particle:nth-child(4) { bottom: 30%; right: 30%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-form-container {
    width: 100%;
    max-width: 800px;
    background: hsla(220, 45%, 8%, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(48, 100%, 50%, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 
        0 20px 40px hsla(0, 0%, 0%, 0.3),
        0 0 0 1px hsla(48, 100%, 50%, 0.1);
    position: relative;
    z-index: 2;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: hsla(220, 45%, 8%, 0.5);
    color: var(--foreground);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px hsla(48, 100%, 50%, 0.1);
    background: hsla(220, 45%, 8%, 0.8);
}

.form-input:hover {
    border-color: hsla(48, 100%, 50%, 0.3);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition-smooth);
}

.password-toggle:hover {
    color: var(--accent);
    background: hsla(48, 100%, 50%, 0.1);
}

.password-toggle i {
    width: 1rem;
    height: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: transparent;
}

.forgot-password {
    color: var(--accent);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: var(--accent-foreground);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px hsla(48, 100%, 50%, 0.3);
}

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

.submit-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.form-footer p {
    color: var(--muted-foreground);
    margin: 0;
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Messages d'erreur et succès */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-error {
    background: hsla(0, 84%, 60%, 0.1);
    border: 1px solid hsla(0, 84%, 60%, 0.3);
    color: hsl(0, 84%, 60%);
}

.alert-success {
    background: hsla(120, 40%, 50%, 0.1);
    border: 1px solid hsla(120, 40%, 50%, 0.3);
    color: hsl(120, 40%, 50%);
}

/* Responsive */
@media (min-width: 1024px) {
    .login-container {
        min-height: calc(100vh - 80px);
        padding-top: calc(80px + 2rem); /* Hauteur header desktop + padding */
    }
}

@media (max-width: 1024px) {
    .login-form-container {
        max-width: 700px;
        margin: 1rem;
    }
}

@media (max-width: 768px) {
    .login-form-container {
        max-width: 600px;
        padding: 2.5rem 2rem;
        margin: 1rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .login-title {
        font-size: 1.375rem;
    }
}

