/* ========================================
   ULTRA MODERN LOGIN DESIGN - SmartSchoolPay
   Split-Screen avec Animations 3D
   ======================================== */

/* Variables CSS */
:root {
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #198ae3 0%, #198ae3 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --info-gradient: linear-gradient(135deg, #198ae3 0%, #48b7db 100%);
    --purple-gradient: linear-gradient(135deg, #198ae3 0%, #4a00e0 100%);
    
    /* Couleurs principales */
    --primary-color: #198ae3;
    --secondary-color: #198ae3;
    --accent-color: #f5576c;
    --success-color: #38ef7d;
    --danger-color: #f45c43;
    --warning-color: #feca57;
    --info-color: #48b7db;
    
    /* Texte */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-medium: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dark: #2c3e50;
    --text-darker: #1a202c;
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --bg-dark: rgba(0, 0, 0, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-dark: rgba(255, 255, 255, 0.05);
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.4);
    
    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #198ae3 0%, #e5a412 50%, #047edf 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 20%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 30%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 10%;
    animation-duration: 22s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 25%;
    animation-duration: 19s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 70%;
    left: 15%;
    animation-duration: 24s;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 50%;
    animation-duration: 17s;
    animation-delay: 2.5s;
}

.particle:nth-child(8) {
    width: 110px;
    height: 110px;
    bottom: 10%;
    left: 40%;
    animation-duration: 21s;
    animation-delay: 1.5s;
}

.particle:nth-child(9) {
    width: 75px;
    height: 75px;
    top: 60%;
    right: 40%;
    animation-duration: 20s;
    animation-delay: 3.5s;
}

.particle:nth-child(10) {
    width: 65px;
    height: 65px;
    bottom: 40%;
    right: 15%;
    animation-duration: 23s;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.6;
    }
}

/* ========================================
   LOGIN WRAPPER - SPLIT SCREEN
   ======================================== */

.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* ========================================
   LOGIN VISUAL - PARTIE GAUCHE
   ======================================== */

.login-visual {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Brand */
.brand-logo-large {
    margin-bottom: 4rem;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(102, 126, 234, 0.4);
    animation: pulse 3s ease-in-out infinite;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.logo-circle i {
    font-size: 4rem;
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateZ(0);
        box-shadow: var(--shadow-2xl), 0 0 60px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05) translateZ(0);
        box-shadow: var(--shadow-2xl), 0 0 80px rgba(102, 126, 234, 0.6);
    }
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.brand-smart {
    color: #00289d;
}

.brand-school {
    color: #00289d;
    margin: 0 0.3rem;
}

.brand-pay {
    background: #E91E63;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Statistiques */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

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

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--text-white);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Formes géométriques */
.geometric-shapes {
    position: absolute;
    top: 1;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    animation: morphShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: -5%;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* ========================================
   LOGIN FORM SECTION - PARTIE DROITE
   ======================================== */

.login-form-section {
    flex: 0 0 550px;
    width: 550px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 450px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.login-card.visible {
    opacity: 1;
    transform: translateX(0);
}

/* En-tête de la carte */
.card-header {
    margin-bottom: 2rem;
}

.login-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-darker);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.login-title i {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 400;
}

/* Alertes */
.alert {
    background: rgba(72, 183, 219, 0.1);
    border: 1px solid rgba(72, 183, 219, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--info-color);
    font-size: 0.9rem;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.alert-link {
    color: var(--info-color);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 0.25rem;
}

.alert-link:hover {
    color: var(--primary-color);
}

/* ========================================
   FORMULAIRE MODERNE
   ======================================== */

.login-form {
    margin-bottom: 2rem;
}

.form-floating-custom {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
    z-index: 2;
    transition: var(--transition-base);
    pointer-events: none;
}

.input-wrapper.focused .input-icon {
    color: var(--primary-color);
}

.form-control-custom {
    width: 100%;
    height: 56px;
    padding: 1.5rem 1.25rem 0.5rem 3.5rem;
    font-size: 1rem;
    color: var(--text-darker);
    background: var(--bg-light);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    outline: none;
}

.form-control-custom:focus {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-control-custom::placeholder {
    color: transparent;
}

.floating-label {
    position: absolute;
    left: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #a0aec0;
    transition: var(--transition-base);
    pointer-events: none;
    background: transparent;
    padding: 0;
}

.input-wrapper.focused .floating-label,
.form-control-custom:not(:placeholder-shown) + .floating-label {
    top: 0.75rem;
    font-size: 0.75rem;
    transform: translateY(0);
    color: var(--primary-color);
    font-weight: 600;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
    transition: var(--transition-base);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.input-wrapper.has-error .form-control-custom {
    border-color: var(--danger-color);
}

.input-wrapper.has-error .input-icon {
    color: var(--danger-color);
}

.error-message {
    display: block;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Options de connexion */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.remember-me label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.forgot-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ========================================
   BOUTON DE CONNEXION MODERNE
   ======================================== */

.btn-login-modern {
    width: 100%;
    height: 56px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-login-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

.btn-login-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    opacity: 0;
}

.btn-ripple.active {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(40);
        opacity: 0;
    }
}

/* État de chargement */
.btn-login-modern.loading .btn-content {
    opacity: 0;
}

.btn-login-modern.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   COMPTES DE DÉMONSTRATION
   ======================================== */

.demo-section {
    margin-top: 2rem;
    padding-top: 2rem;
}

.divider {
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.divider span {
    display: inline-block;
    background: var(--bg-white);
    padding: 0 1rem;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-account-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    text-align: left;
}

.demo-account-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-white);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.demo-account-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.demo-account-btn.loading {
    opacity: 0.7;
}

.account-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.superadmin-btn .account-icon {
    background: var(--success-gradient);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.teacher-btn .account-icon {
    background: var(--danger-gradient);
    box-shadow: 0 4px 12px rgba(235, 51, 73, 0.3);
}

.staff-btn .account-icon {
    background: var(--info-gradient);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.account-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.account-info {
    flex: 1;
}

.account-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-darker);
    margin-bottom: 0.25rem;
}

.account-email {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.account-arrow {
    color: #cbd5e0;
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.demo-account-btn:hover .account-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ========================================
   FOOTER
   ======================================== */

.card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
}

@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-visual {
        min-height: 40vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem 1.5rem;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .logo-circle i {
        font-size: 3rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .login-form-section {
        flex: 1;
        width: 100%;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .login-visual {
        min-height: 35vh;
        padding: 1.5rem 1rem;
    }
    
    .brand-logo-large {
        margin-bottom: 2rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .logo-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .logo-circle i {
        font-size: 2.5rem;
    }
    
    .brand-tagline {
        font-size: 0.95rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        padding: 0.875rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.75rem;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .login-form-section {
        padding: 1.5rem 1rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .form-control-custom {
        height: 52px;
    }
    
    .btn-login-modern {
        height: 52px;
    }
    
    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .animated-background .particle {
        display: none;
    }
    
    .login-visual {
        min-height: 30vh;
    }
    
    .brand-name {
        font-size: 1.75rem;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .logo-circle i {
        font-size: 2rem;
    }
    
    .shape {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-login-modern:focus-visible,
.form-control-custom:focus-visible,
.demo-account-btn:focus-visible,
.forgot-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.me-2 {
    margin-right: 0.5rem;
}

.mb-0 {
    margin-bottom: 0;
}
