/* static/css/auth.css - Styles d'authentification modernes et sécurisés */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.animated-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(255, 255, 255, 0.15);
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    background: rgba(255, 255, 255, 0.1);
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
    background: rgba(255, 255, 255, 0.12);
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
    background: rgba(255, 255, 255, 0.08);
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 50%;
    left: 5%;
    animation-delay: 4s;
    background: rgba(255, 255, 255, 0.06);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.auth-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5em;
    color: #ff0050;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo h1 {
    font-size: 1.8em;
    color: #2c3e50;
    font-weight: 700;
}

.subtitle {
    color: #7f8c8d;
    font-size: 0.95em;
    margin-top: 5px;
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 0.9em;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.input-wrapper i {
    padding: 0 15px;
    color: #6c757d;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within i {
    color: #667eea;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 10px 15px 0;
    font-size: 1em;
    color: #2c3e50;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within input::placeholder {
    color: #6c757d;
}

.toggle-password {
    background: none;
    border: none;
    padding: 0 15px;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

.field-help {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 5px;
    margin-left: 10px;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-