/* Sereen Authentication Styles */
:root {
    --sereen-primary: #2E6BE5;
    --sereen-primary-dark: #1e4bb8;
    --sereen-secondary: #FFD900;
    --sereen-light: #f8f9ff;
    --sereen-success: #28a745;
    --sereen-success-dark: #218838;
    --sereen-danger: #dc3545;
    --sereen-danger-dark: #c82333;
    --sereen-warning: #ffc107;
    --sereen-warning-dark: #e0a800;
}

/* Base Styles */
body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.login-container .row {
    margin: 0;
    width: 100%;
}

.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Panel Styles */
.left-panel {
    background: linear-gradient(135deg, var(--sereen-primary) 0%, var(--sereen-primary-dark) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    padding: 0;
    margin: 0;
}

.right-panel {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Desktop Form Container */
.desktop-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Form Wrappers */
.desktop-form-wrapper {
    display: block;
}

.mobile-form-wrapper {
    display: none;
}

@media (max-width: 991.98px) {
    .desktop-form-wrapper {
        display: none;
    }
    
    .mobile-form-wrapper {
        display: block;
    }
}

/* Desktop Logo Square */
.desktop-logo-square {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desktop-logo-square img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Desktop Welcome Text */
.desktop-form-container .welcome-text {
    text-align: center;
    margin-bottom: 2rem;
}

.desktop-form-container .welcome-text h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.desktop-form-container .welcome-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Desktop Button */
.desktop-form-container .btn-sereen {
    background-color: var(--sereen-primary);
    border-color: var(--sereen-primary);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.desktop-form-container .btn-sereen:hover {
    background-color: var(--sereen-primary-dark);
    border-color: var(--sereen-primary-dark);
    color: white;
}

/* Form Input Styling Unifié (Mobile & Desktop) - Spécificité renforcée */
.form-control,
input.form-control,
input[type="email"].form-control,
input[type="text"].form-control,
input[type="tel"].form-control,
select.form-control {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--sereen-primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 107, 229, 0.25);
    outline: 0;
}

/* Styles spécifiques pour les pages d'authentification - Spécificité maximale */
.login-container .form-control,
.desktop-form-wrapper .form-control,
.mobile-form-wrapper .form-control,
.form-container .form-control,
input.form-control[style*="height: 36px"],
input[type="email"].form-control[style*="height: 36px"],
input[type="text"].form-control[style*="height: 36px"] {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-sizing: border-box !important;
}

/* Styles spécifiques pour le formulaire CRUD client (Tailwind) */
input[style*="height: 36px"][style*="padding-top: 8px"],
select[style*="height: 36px"][style*="padding-top: 8px"] {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-sizing: border-box !important;
}

/* SOLUTION SIMPLIFIÉE - Hauteur uniforme de 36px */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
.form-control {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    line-height: 20px !important;
}

/* CONTRASTE OPTIMISÉ DES TEXTES */
/* 
 * OPTION C AMÉLIORÉE : Bootstrap en premier, Tailwind en dernier
 * - Bootstrap gère les formulaires et composants
 * - Tailwind gère le layout et la sidebar
 * - CSS custom override proprement Bootstrap
 */

/* LABELS : NOIR PROPRE (Bootstrap en premier) */
.form-label {
    color: #000000 !important; /* NOIR PUR */
    font-weight: 600 !important; /* GRAS */
    font-size: 14px !important;
}

/* Inputs : Très foncé et moins gras */
input[type="text"],
input[type="email"],
input[type="tel"],
.form-control,
select.form-control {
    color: #000000 !important; /* Noir pur pour l'input */
    font-weight: 400 !important; /* Normal (moins gras que le label) */
    font-size: 14px !important;
}

/* PLACEHOLDERS : GRIS MOYEN PROPRE (Bootstrap en premier) */
.form-control::placeholder {
    color: #6b7280 !important; /* GRIS MOYEN */
    font-weight: 400 !important; /* Même graisse que l'input */
    opacity: 1 !important; /* Pas d'opacité */
}

/* Placeholders au focus : Gris encore plus clair */
input[type="text"]:focus::placeholder,
input[type="email"]:focus::placeholder,
input[type="tel"]:focus::placeholder,
.form-control:focus::placeholder {
    color: #d1d5db !important; /* Gris très clair au focus */
    font-weight: 400 !important;
    opacity: 0.8 !important;
}

/* DROPDOWNS : "Sélectionnez..." EN GRIS MOYEN PROPRE */
select.form-control option:first-child {
    color: #6b7280 !important; /* GRIS MOYEN */
    font-weight: 400 !important;
}

/* Dropdowns : Options sélectionnées en noir */
select.form-control option:not(:first-child) {
    color: #000000 !important; /* Noir pour les vraies options */
    font-weight: 400 !important;
}

/* OVERLAY ET EFFET FLUO - FORCE L'AFFICHAGE */
#create-floating-overlay,
#edit-floating-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

#create-floating-overlay.show,
#edit-floating-overlay.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#create-floating-group,
#edit-floating-group {
    z-index: 1001 !important;
}

/* Styles Bootstrap unifiés - Plus besoin de surmonter Tailwind */

/* Validation Bootstrap Unifié */
.was-validated .form-control:valid {
    border-color: #198754;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.decorative-bg {
    position: absolute;
    top: 10%;
    left: -10%;
    opacity: 1;
    z-index: 1;
    transform: scale(1.1);
}

.right-panel {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Styles */
.form-container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}

.logo-container {
    width: 70px;
    height: 70px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    margin: 0 auto 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-sereen-primary {
    background-color: var(--sereen-primary);
    border-color: var(--sereen-primary);
    color: white;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-sereen-primary:hover {
    background-color: var(--sereen-primary-dark);
    border-color: var(--sereen-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 107, 229, 0.3);
}

.btn-sereen-success {
    background-color: var(--sereen-success);
    border-color: var(--sereen-success);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-sereen-success:hover {
    background-color: var(--sereen-success-dark);
    border-color: #1e7e34;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-sereen-danger {
    background-color: var(--sereen-danger);
    border-color: var(--sereen-danger);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-sereen-danger:hover {
    background-color: var(--sereen-danger-dark);
    border-color: var(--sereen-danger-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Form Control Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--sereen-primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 107, 229, 0.25);
}

/* Alert Styles */
.alert-sereen {
    border-radius: 8px;
    border: none;
    padding: 16px;
}

/* Card Styles */
.error-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
}

/* Icon Styles */
.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 3px solid #f87171;
}

.email-illustration {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--sereen-light) 0%, #e3f2fd 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

/* Utility Classes */
.text-sereen-primary {
    color: var(--sereen-primary) !important;
}

.bg-sereen-light {
    background-color: var(--sereen-light) !important;
}

.cause-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cause-icon {
    color: #6b7280;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

/* Responsive Styles - Design Mobile-First */
@media (max-width: 991.98px) {
    .left-panel {
        display: none !important;
    }
    
    .left-panel * {
        display: none !important;
    }
    
    body {
        margin: 0;
        font-family: 'Work Sans', sans-serif;
        background: linear-gradient(152deg, #2e6be5 0%, #1c46ac 79.41%); /* Même couleur que desktop left */
        color: #404040;
        min-height: 100vh;
        padding: 0;
    }
    
    .login-container {
        width: 100%;
        min-height: 100vh;
        padding: 0;
        background: transparent;
    }
    
    .right-panel {
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Neutraliser les styles Bootstrap qui interfèrent */
    .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .row {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .col-lg-6 {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Desktop: Afficher le formulaire mobile aussi */
    .mobile-auth-frame {
        display: flex !important;
    }
}

/* Styles pour desktop - layout pleine hauteur */
@media (min-width: 992px) {
    body {
        background: transparent;
    }
    
    .login-container {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
        margin: 0;
    }
    
    .row {
        height: 100vh !important;
        width: 100% !important;
    }
    
    .col-lg-6 {
        height: 100vh !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .left-panel {
        height: 100vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    /* Styles pour la nouvelle frame Left desktop */
    .splash-container {
        max-width: 945px;
        width: 100%;
        min-height: 100vh;
        background: linear-gradient(152deg, #2e6be5 0%, #1c46ac 79.41%);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 48px 32px;
        position: relative;
        overflow: hidden;
        color: #ffffff;
        font-family: 'Work Sans', sans-serif;
    }

    .background-shape {
        position: absolute;
        top: 0px;
        left: -12px;
        width: 109%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
    }

    .splash-header,
    .splash-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .logo {
        width: 210px;
        height: 75px;
        flex-shrink: 0;
    }

    .powered-by {
        font-size: 21px;
        font-weight: 500;
        margin: 0;
        text-align: right;
        color: #ffffff;
    }

    .powered-by strong {
        font-weight: 700;
    }

    .splash-footer {
        align-items: flex-end;
    }

    .footer-text {
        font-size: 21px;
        font-weight: 700;
        color: #ffffff;
    }

    .accessibility-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .accessibility-info img {
        width: 20px;
        height: 20px;
    }

    .accessibility-info p {
        margin: 0;
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
    }

    .accessibility-info a {
        color: #ffffff;
        text-decoration: underline;
    }
    
    .right-panel {
        height: 100vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
    
    .desktop-form-container {
        width: 400px;
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .desktop-form-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .desktop-form-wrapper .form-group {
        width: 100%;
    }
    
    .desktop-form-wrapper .form-control {
        width: 100%;
    }
    
    .desktop-form-wrapper .btn-sereen-primary {
        width: 100%;
    }
    
    .desktop-form-container .welcome-text {
        text-align: center;
        width: 100%;
    }
    
    .desktop-form-container .help-link {
        text-align: center;
        width: 100%;
    }
}

/* Mobile: restaurer l'affichage comme avant */
@media (max-width: 991.98px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 0;
    }
    
    .login-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        padding: 0;
        background: transparent;
    }
    
    .right-panel {
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Signature jaune mobile en background */
    .mobile-background-shape {
        position: absolute;
        top: 150px; /* Laisse 150px sans signature en haut */
        left: 0;
        width: 100%; /* Toute la largeur de l'écran */
        height: 70vh; /* Hauteur réduite de 30% : 100vh - 30vh = 70vh */
        min-height: 70vh; /* Assure une hauteur minimale */
        pointer-events: none;
        z-index: 1; /* Plus faible que le logo et formulaire */
        opacity: 0.8; /* Légèrement transparente */
        object-fit: contain; /* Garde les proportions originales */
        object-position: center top; /* Centre horizontalement, aligne en haut */
        filter: hue-rotate(0deg) saturate(1) brightness(1); /* Assure la couleur exacte #FFD900 */
    }
    
    /* S'assurer que les autres éléments ont un z-index plus élevé */
    .mobile-main-frame {
        position: relative;
        z-index: 2;
    }
    
    .mobile-top-section,
    .mobile-content-frame,
    .mobile-bottom-section {
        position: relative;
        z-index: 3;
    }
    
    /* Header avec logo principal */
    .mobile-header {
        width: 100%;
        display: flex !important;
        justify-content: center;
        margin-bottom: 24px; /* Augmenté pour plus d'espace avec le logo carré */
        margin-top: 0; /* Supprimé pour gagner de l'espace en haut */
    }
    
    .mobile-top-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }
    
    .avisea-branding {
        display: flex;
        justify-content: center;
    }
    
    .avisea-text {
        color: #ffffff;
        font-size: 21px;
        font-weight: 500;
        line-height: 25px;
    }
    
    .main-logo {
        width: 364px;
        height: 45px; /* Réduit de 57px à 45px */
        max-width: 100%;
    }
    
    /* Structure mobile simplifiée */
    .mobile-main-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100vh;
        padding: 2px 0; /* Divisé par 2 : de 5px à 2px */
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        gap: 2px; /* Divisé par 2 : de 5px à 2px */
    }
    
    .mobile-top-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        width: 100%;
        flex-shrink: 0;
        padding-top: 36px; /* Augmenté de 24px à 36px */
    }
    
    .mobile-content-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        margin: 0;
        width: 100%;
        justify-content: center; /* Centre le contenu dans l'espace disponible */
    }
    
    /* Logo "à cheval" simplifié */
    .mobile-logo-square {
        width: 90px;
        height: 90px;
        background-color: #ffffff;
        border: 1px solid #999999;
        border-radius: 18px;
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -35px; /* Ajusté pour le nouveau padding du formulaire */
        z-index: 1000;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    
    .mobile-logo-square img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Formulaire simplifié */
    .form-container {
        background-color: #ffffff;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 50px 30px 30px 30px;
        width: calc(100% - 40px); /* Largeur responsive avec padding de 20px de chaque côté */
        max-width: 600px; /* Maximum augmenté à 600px */
        min-width: 320px; /* Minimum réduit à 320px */
        margin: 0 auto;
        z-index: 1;
    }
    
    
    /* Texte de bienvenue */
    .welcome-text {
        text-align: center;
        color: #404040;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .welcome-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 8px;
    }
    
    .welcome-text h1 {
        margin: 0;
        font-size: 18px;
        font-weight: 500;
        text-align: center;
        width: 100%;
    }
    
    .welcome-text p {
        margin: 0;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.4;
        padding: 0;
        width: 100%;
        max-width: 280px;
        word-wrap: break-word;
        text-align: center;
        display: block;
    }
    
    
    .welcome-heading {
        font-size: 24px; /* Réduit de 30px à 24px */
        font-weight: 700;
    }
    
    .welcome-exclamation {
        font-size: 18px; /* Réduit de 21px à 18px */
        font-weight: 700;
    }
    
    .welcome-text p {
        margin: 0;
        font-size: 16px; /* Réduit de 18px à 16px */
        font-weight: 400; /* Réduit de 500 à 400 */
        line-height: 1.4;
        padding: 0 10px;
    }
    
    /* Divider */
    .divider {
        width: 288px;
        height: 1px;
        border: none;
        border-top: 1px solid #2e6be5;
        margin: 0;
    }
    
    /* Groupe de formulaire */
    .form-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        max-width: 400px; /* Largeur maximale différente pour contrôler l'input */
        padding: 0;
    }
    
    .form-group label {
        font-size: 18px;
        font-weight: 500;
        color: #404040;
    }
    
    .required {
        color: #ff555e;
    }
    
    .form-control {
        width: 100%;
        height: 36px;
        border: 1px solid #bfbfbf;
        border-radius: 6px;
        padding: 0 12px;
        font-size: 18px;
        font-family: 'Work Sans', sans-serif;
    }
    
    .form-control::placeholder {
        color: #707070;
        font-weight: 500;
    }
    
    /* Actions */
    .actions {
        display: flex;
        flex-direction: column;
        gap: 16px; /* Augmente l'espacement entre le bouton et le lien d'aide */
        width: 100%;
        max-width: 100%;
        align-items: center;
        margin-top: 12px; /* Augmente l'espacement avec le formulaire */
        padding: 0;
    }
    
    .btn-sereen-primary {
        width: 100%;
        height: 50px;
        background-color: #2e6be5;
        color: #ffffff;
        border: none;
        border-radius: 6px;
        font-size: 18px;
        font-weight: 500;
        font-family: 'Work Sans', sans-serif;
        cursor: pointer;
    }
    
    .help-link {
        color: #404040;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        line-height: 40px;
        padding: 0; /* Suppression du padding horizontal */
    }
    
    /* Footer */
    .login-footer {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        color: #ffffff;
        text-align: center;
        margin-top: 0;
    }
    
    /* Section bottom simplifiée */
    .mobile-bottom-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px; /* Réduit encore plus pour rapprocher les éléments */
        color: #ffffff;
        text-align: center;
        width: 100%;
        flex-shrink: 0;
        margin: 0;
        padding-bottom: 36px; /* Augmenté de 24px à 36px */
    }
    
    .app-version {
        font-size: 21px;
        font-weight: 700;
        line-height: 25px;
        margin: 0;
    }
    
    .accessibility-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }
    
    .accessibility-icon {
        width: 20px;
        height: 20px;
    }
    
    .accessibility-info p {
        font-size: 16px;
        font-weight: 500;
        line-height: 19px;
        margin: 0;
        max-width: 320px;
    }
    
    .accessibility-info a {
        color: #ffffff;
        text-decoration: underline;
    }
    
    .error-container {
        padding: 1rem;
    }
    
    .error-card {
        padding: 2rem;
    }
}

/* Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus Styles for Accessibility */
.btn-sereen-primary:focus,
.btn-sereen-success:focus,
.btn-sereen-danger:focus {
    outline: 2px solid var(--sereen-primary);
    outline-offset: 2px;
}

.form-control:focus {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --sereen-primary: #1a4bb8;
        --sereen-primary-dark: #0f3a8a;
    }
    
    .btn-sereen-primary,
    .btn-sereen-success,
    .btn-sereen-danger {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btn-sereen-primary,
    .btn-sereen-success,
    .btn-sereen-danger,
    .form-control {
        transition: none;
    }
    
    .btn-sereen-primary:hover,
    .btn-sereen-success:hover,
    .btn-sereen-danger:hover {
        transform: none;
    }
}
