body {
    background-color: #f4faff;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

.site-main {
    min-height: 100vh;
    padding-bottom: 100px;
}

.main-title {
    margin-top: 20px;
    font-size: 36px;
    line-height: 38px;
    color: #475e75;
}
.main-content {
    margin-bottom:40px;
}

.banner{
    background-image:url(https://unc.nc/wp-content/uploads/2016/12/enteterecherche.jpg)!important
}

.panel-password a,
.panel-password a:hover {
    text-decoration: none;
}
.panel-heading {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.panel-logo{
    padding:20px 50px;
}
.panel-logo .img-logo {
    max-height: 140px;
}

.form-group > label{
    margin: 0;
    color: #475e75;
    font-size: 20px;
    text-align: left!important;
    line-height: 40px;
    padding-top: 1px;
    display: block;
    padding-left: 0;
}
.wrong .fa-check{
    display: none;
}

.good .fa-times{
    display: none;
}

.fa.text-success{
    color: #3c763d;
}

.fa.text-danger{
    color: #a94442;
}

.valid-feedback, .invalid-feedback {
    margin-left: calc(2em + 0.25rem + 1.5rem);
}

.form-loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin:auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

footer .info-version {
    position: absolute;
    right: 20px;
    bottom: 58px;
}

/* Style pour le bouton "Contacter la DNSI" dans le footer */
footer .btn {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: normal;
}

/* Améliorations UX pour le message de sécurité */
.security-message {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInSecurity 0.8s ease-out 0.5s forwards;
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    transition: all 0.3s ease;
}

.security-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    border-left-width: 6px !important;
}

@keyframes fadeInSecurity {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration de l'icône de sécurité */
.security-icon {
    transition: transform 0.2s ease;
}

.security-message:hover .security-icon {
    transform: scale(1.1);
}

/* Styles pour les titres de sécurité (remplacement des styles inline) */
.security-title {
    color: #2c3e50;
    font-weight: bold;
}

.security-description {
    font-size: 14px;
    color: #2c3e50;
}

/* Barre de progression de la force du mot de passe */
.password-strength-container {
    margin-top: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.password-strength-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.strength-text {
    color: #495057;
    font-weight: 500;
}

.strength-score {
    color: #6c757d;
    font-weight: bold;
    font-size: 12px;
}

.password-strength-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.4s ease;
    border-radius: 4px;
}

/* Couleurs de la barre selon la force */
.strength-very-weak .password-strength-fill {
    background-color: #dc3545;
    width: 20%;
}

.strength-weak .password-strength-fill {
    background-color: #fd7e14;
    width: 40%;
}

.strength-fair .password-strength-fill {
    background-color: #ffc107;
    width: 60%;
}

.strength-good .password-strength-fill {
    background-color: #20c997;
    width: 80%;
}

.strength-strong .password-strength-fill {
    background-color: #28a745;
    width: 100%;
}

.strength-tips {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
    min-height: 16px;
}

/* Animation d'apparition de la barre */
.password-strength-container.show {
    opacity: 1;
    transform: translateY(0);
}

.password-strength-container {
    opacity: 0;
    transform: translateY(-10px);
}

/* Styles pour le bouton "En savoir plus" */
.security-message .btn-link:hover {
    color: #2980b9 !important;
    text-decoration: none;
}

.security-message .btn-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

/* Amélioration de la modal */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-body h5 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h5:first-child {
    margin-top: 0;
}

.modal-body ul {
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Animation d'apparition de la modal */
.modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

.modal.in .modal-dialog {
    transform: translateY(0);
}

/* Micro-animations pour améliorer l'UX */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.btn {
    transition: all 0.2s ease;
}

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

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

/* Animation pour les icônes de validation */
.fa-check, .fa-times {
    transition: all 0.3s ease;
}

.good .fa-check {
    animation: checkmark 0.5s ease;
}

.wrong .fa-times {
    animation: crossmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes crossmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Amélioration des alertes avec transitions */
.alert {
    transition: all 0.3s ease;
}

/* Animation pour les changements de couleur des alertes */
.alert-warning {
    animation: alertWarning 0.4s ease;
}

.alert-success {
    animation: alertSuccess 0.4s ease;
}

@keyframes alertWarning {
    0% {
        background-color: #f8f9fa;
        border-color: #e9ecef;
    }
    100% {
        background-color: #fff3cd;
        border-color: #ffeaa7;
    }
}

@keyframes alertSuccess {
    0% {
        background-color: #f8f9fa;
        border-color: #e9ecef;
    }
    100% {
        background-color: #d4edda;
        border-color: #c3e6cb;
    }
}

/* Styles pour les messages d'erreur et d'avertissement */
#form-status {
    white-space: pre-line;
    word-wrap: break-word;
    max-height: none;
    overflow: visible;
    line-height: 1.5;
    padding: 15px;
    margin: 15px 0;
}

/* Style pour l'avertissement de mot de passe identique */
#same-password-warning {
    animation: slideInWarning 0.3s ease-out;
    border-left: 4px solid #f39c12;
}

@keyframes slideInWarning {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration de l'affichage des messages longs */
.alert {
    word-break: break-word;
    overflow-wrap: break-word;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 5px;
}