/* ============================================================================
   AUTH.CSS - Styles communs pour les pages d'authentification
   Utilisé par: login.html, register.html
   ============================================================================ */

/* Base Layout */
body.auth-page {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container & Card */
.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

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

.auth-logo p {
    color: #999;
    margin: 0;
    font-size: 0.95rem;
}

/* Form Elements */
.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ccc;
    font-size: 0.95rem;
}

.auth-form .form-group input,
.auth-form .form-group select {
    width: 100%;
    padding: 14px 16px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.auth-form .form-group input::placeholder {
    color: #666;
}

/* Password Requirements (register) */
.password-requirements {
    margin-top: 8px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
}

.password-requirements ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #999;
}

.password-requirements li {
    margin: 4px 0;
}

.password-requirements li.valid {
    color: #10b981;
}

.password-requirements li.invalid {
    color: #f87171;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: none;
    font-size: 0.95rem;
}

.auth-message.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid #f87171;
    color: #f87171;
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.auth-message.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

/* Links & Navigation */
.auth-links {
    text-align: center;
    margin-top: 24px;
    color: #999;
    font-size: 0.95rem;
}

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

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

/* Remember Me / Forgot Password Row (login) */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.9rem;
}

.auth-remember input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.auth-forgot {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-logo h1 {
        font-size: 1.75rem;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
