/* ============================================
   NeoCare - Styles d'authentification
   ============================================ */

:root {
    --nc-primary: #2c3e50;
    --nc-primary-dark: #1a252f;
    --nc-text: #495057;
    --nc-text-light: #6c757d;
    --nc-border: #dee2e6;
    --nc-bg-light: #f8f9fa;
}

body {
    font-family: var(--nc-font-family);
    color: var(--nc-text);
}

/* Container principal */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Carte d'authentification */
.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

/* Header avec logo */
.auth-header {
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: auto;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}



.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nc-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--nc-text-light);
    margin: 0;
}

/* Formulaires */
.form-label {
    font-weight: 500;
    color: var(--nc-text);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--nc-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Input group pour toggle password */
.input-group {
    border-radius: 8px;
    overflow: hidden;
}

.input-group .form-control {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

/* Bouton principal */
.btn-primary {
    background-color: var(--nc-primary);
    border-color: var(--nc-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--nc-primary-dark);
    border-color: var(--nc-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.forgot-password-link,
.forgot-password-link:hover,
.forgot-password-link:focus {
    color: #000000;
}

.back-to-login-link,
.back-to-login-link:hover,
.back-to-login-link:focus {
    color: #000000;
}

/* Bouton outline */
.btn-outline-secondary {
    border-color: var(--nc-border);
    color: var(--nc-text-light);
}

.btn-outline-secondary:hover {
    background-color: var(--nc-bg-light);
    border-color: var(--nc-border);
    color: var(--nc-text);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
.auth-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--nc-border);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-logo {
        height: 80px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.3s ease-out;
}