/* === STRUCTURE === */
.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 15px;
}

/* Carte principale */
.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

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

/* === HEADER === */
.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 45px 30px;
    position: relative;
}

.auth-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-logo i {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === FORMULAIRE === */
.auth-body {
    padding: 40px 30px;
}

.form-floating {
    margin-bottom: 20px;
    position: relative;
}

.form-floating > .form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    transition: all 0.3s;
    font-size: 15px;
}

.form-floating > .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.2);
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 4;
}

.password-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #667eea;
}

/* === BOUTON === */
.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

/* Loading state */
.loading-spinner {
    display: none;
}

.loading .loading-spinner {
    display: inline-block;
}

.loading .btn-text {
    display: none;
}

/* === ALERTES === */
.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
}

/* === FOOTER === */
.auth-footer {
    text-align: center;
    padding: 20px 30px 30px;
    background: #f8f9fa;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* === OCR-THEME === */
.ocr-tagline {
    font-size: 13px;
    opacity: 0.8;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .auth-body {
        padding: 25px;
    }
}
