/* Variables de couleurs Uitguard */
:root {
    --uitguard-blue: #0054A4;
    --uitguard-orange: #FF6E00;
    --uitguard-text-dark: #333333;
    --uitguard-text-light: #666666;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow-x: hidden;
}

.login-container {
    min-height: calc(100vh - 60px);
    margin: 0;
    padding: 0;
}

/* Panneau gauche bleu */
.left-panel {
    background: linear-gradient(89deg, #1057CB 0%, #001A70 100%);
    position: relative;
    padding: 0;
    min-height: calc(100vh - 60px);
}

.left-panel-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.logo-uitguard {
    width: auto;
    height: auto;
    align-self: flex-start;
}

.illustration-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.illustration-img {
    width: 100%;
    height: auto;
    max-width: 350px;
}

.mediation-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0;
    text-align: center;
}

/* Panneau droit blanc */
.right-panel {
    background-color: #ffffff;
    min-height: calc(100vh - 60px);
}

.login-form {
    max-width: 500px;
    margin: auto;
    padding: 2rem;
}

/* Logo et titre eAlise */
.logo-uitguard-orange {
    width: 150px;
    height: auto;
}

.ealise-title {
    color: var(--uitguard-text-dark);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 0;
}

.login-subtitle {
    color: var(--uitguard-text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Formulaire */
.form-label {
    color: var(--uitguard-text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.input-group-text img {
    display: block;
    width: 24px;
    height: 24px;
}

.form-control {
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--uitguard-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 84, 164, 0.25);
    outline: 2px solid var(--uitguard-blue);
    outline-offset: 2px;
}

.input-group:focus-within .input-group-text {
    border-color: var(--uitguard-blue);
    background-color: #e7f3ff;
}

/* Liens */
.link-primary {
    color: var(--uitguard-blue);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.link-primary:hover,
.link-primary:focus {
    color: #003d7a;
    text-decoration: underline !important;
    outline: 2px solid var(--uitguard-blue);
    outline-offset: 2px;
}

/* Bouton Accéder */
.btn-access {
    background-color: var(--uitguard-blue);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    color: white;
}

.btn-access:hover {
    background-color: #003d7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-access:focus {
    background-color: var(--uitguard-blue);
    outline: 3px solid #FFD700;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 84, 164, 0.5);
    color: white;
}

.btn-access:active {
    background-color: #002d5a;
    transform: translateY(0);
    color: white;
}

/* Footer */
.login-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.footer-link {
    color: var(--uitguard-blue);
    text-decoration: underline;
    font-size: 0.85rem;
}

.footer-link:hover,
.footer-link:focus {
    text-decoration: underline;
    color: #003d7a;
    outline: 2px solid var(--uitguard-blue);
    outline-offset: 2px;
}

.footer-separator {
    color: #6c757d;
    margin: 0 0.5rem;
}

.footer-copyright {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Messages d'alerte */
.message-container {
    margin-bottom: 1.5rem;
}

.message-list {
    margin-bottom: 0;
    padding-left: 20px;
}

.message-list li {
    margin-bottom: 5px;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.75rem;
}

/* Messages d'erreur de validation */
.invalid-feedback.d-block {
    display: block !important;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Skip link pour l'accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0054A4;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .right-panel {
        min-height: 100vh;
    }
    
    .login-form {
        padding: 1rem;
    }
    
    .ealise-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 1.25rem;
    }
    
    .login-footer {
        position: static;
    }
}

/* Ajustement pour le wrapper du formulaire */
.form-wrapper {
    max-width: 500px;
    margin: auto;
}

.form-check-label {
    cursor: pointer;
}
