/* login.css */
/* 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 h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.metod-title {
    color: var(--untec-blue);
}

.metod-version {
    color: var(--untec-green);
}

.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;
    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);
}

/* Ajustement pour le champ mot de passe avec bouton toggle */
.auth-pass-inputgroup {
    position: relative;
}

.auth-pass-inputgroup .form-control {
    padding-left: 3rem;
    padding-right: 4rem !important; /* Plus d'espace pour le bouton toggle */
}

.auth-pass-inputgroup .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;
    pointer-events: none;
}

.auth-pass-inputgroup .form-control:focus + .bx {
    color: var(--untec-green);
    transform: translateY(-50%) scale(1.1);
}

/* Bouton toggle password */
.password-toggle-btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem !important;
    z-index: 10;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-toggle-btn i {
    color: var(--untec-blue);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.password-toggle-btn:hover {
    background: transparent;
}

.password-toggle-btn:hover i {
    color: var(--untec-dark-blue);
    transform: scale(1.1);
}

.password-toggle-btn:focus {
    box-shadow: none;
    outline: none;
}

/* Amélioration du bouton principal */
.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: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--untec-dark-blue) 0%, var(--untec-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 132, 199, 0.25);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Amélioration de la checkbox */
.form-check-input:checked {
    background-color: var(--untec-blue);
    border-color: var(--untec-blue);
}

.form-check-input:focus {
    border-color: var(--untec-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 132, 199, 0.25);
}

.form-check-label {
    color: #374151;
    font-weight: 500;
}

/* 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 h3 {
        font-size: 1.8rem;
    }

    .text-center .text-muted {
        font-size: 1rem;
    }

    .form-control {
        font-size: 0.95rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}
