/* Variables couleurs Untec */
:root {
    --untec-blue: #0084c7;
    --untec-green: #a4d65e;
    --untec-dark-blue: #00669a;
    --untec-light-blue: #4db8e8;
}

/* Card principale avec effet glassmorphism */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--untec-blue) 0%, var(--untec-green) 100%);
}

/* Amélioration du header */
.text-center h5 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--untec-blue);
}

.text-center .text-muted {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #6c757d;
}

/* Amélioration des labels */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Amélioration des inputs */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--untec-blue);
    box-shadow: 0 0 0 3px rgba(0, 132, 199, 0.1);
    background: white;
    /* Suppression du translateY qui causait le décalage */
    /* transform: translateY(-1px); */
}

.form-control::placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Inputs avec icônes */
.input-custom-icon {
    position: relative;
}

.input-custom-icon .form-control {
    padding-left: 3rem;
}

.input-custom-icon .bx {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--untec-blue);
    font-size: 1.2rem;
    z-index: 3;
    transition: all 0.3s ease;
}

.input-custom-icon .form-control:focus + .bx {
    color: var(--untec-green);
    transform: translateY(-50%) scale(1.1);
}

/* Amélioration du bouton principal - SANS EFFET DE SURVOL */
.btn-primary {
    background: linear-gradient(135deg, var(--untec-blue) 0%, var(--untec-light-blue) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

/* SANS EFFET DE SURVOL */
.btn-primary:hover {
    background: linear-gradient(135deg, var(--untec-blue) 0%, var(--untec-light-blue) 100%);
    box-shadow: 0 4px 15px rgba(0, 132, 199, 0.25);
    /* Pas de changement au survol */
}

.btn-primary:active {
    background: linear-gradient(135deg, var(--untec-blue) 0%, var(--untec-light-blue) 100%);
    box-shadow: 0 4px 15px rgba(0, 132, 199, 0.25);
    /* Pas de changement au clic */
}

/* Amélioration des liens */
.text-muted a {
    color: var(--untec-blue) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.text-muted a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--untec-green);
    transition: width 0.3s ease;
}

.text-muted a:hover {
    color: var(--untec-green) !important;
}

.text-muted a:hover::after {
    width: 100%;
}

/* Amélioration des alertes */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc2626;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background: rgba(164, 214, 94, 0.1);
    color: #059669;
    border-left: 4px solid var(--untec-green);
}

.alert ul {
    padding-left: 1rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* Animation d'entrée */
.card {
    animation: slideInUp 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 576px) {
    .text-center h5 {
        font-size: 1.6rem;
    }
    
    .text-center .text-muted {
        font-size: 1rem;
    }
    
    .form-control {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        min-height: 48px;
    }
}