@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --primary: #a6092f;
    --primary-dark: #a6092f;
    --primary-darker: #ff1744;
    --primary-light: #ff1744;
    --secondary: #fcfcfc;
    --secondary-light: #2e343e;
    --text-primary: #2e343e;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --background: #f8fafc;
    --background-alt: #ffffff;
    --background-card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f1f5f9;
    --success: #4ade80;
    --warning: #fbbf24;
    --info: #60a5fa;
    --error: #f87171;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

html.dark {
    --secondary: #222222;
    --primary-darker: #410312;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --background: #000000;
    --background-alt: #2e343e;
    --background-card: #1e1e1e;
    --border: #333333;
    --border-light: #404040;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
    background: #f8fafc;
}

/* Dynamic Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(45deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 75%, #64748b 100%);
    background-size: 400% 400%;
    animation: gradientShift 35s ease infinite;
}

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

/* Animated Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(odd) {
    animation-direction: reverse;
}

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

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
}

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

.particle:nth-child(4) {
    width: 8px;
    height: 8px;
    top: 80%;
    left: 60%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    top: 30%;
    left: 70%;
    animation-duration: 9s;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    top: 70%;
    left: 30%;
    animation-duration: 11s;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Geometric Shapes */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 2px solid;
    border-color: rgba(166, 9, 47, 0.3);
    animation: rotate 20s linear infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 15%;
    border-radius: 50%;
    animation-duration: 25s;
}

.shape:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 25%;
    border-radius: 30%;
    animation-duration: 35s;
}

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

/* Floating Orbs */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 23, 68, 0.8), rgba(166, 9, 47, 0.4), transparent);
    animation: drift 12s ease-in-out infinite;
    filter: blur(1px);
}

.orb:nth-child(1) {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    animation-duration: 20s;
}

.orb:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -75px;
    right: -75px;
    animation-duration: 25s;
    animation-delay: 5s;
}

.orb:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 50%;
    left: -60px;
    animation-duration: 18s;
    animation-delay: 8s;
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translate(40px, 10px) scale(1.05);
        opacity: 0.85;
    }
}

/* Dark mode backgrounds */
html.dark .background {
    background: linear-gradient(45deg, #0a0a0a 0%, #270000 25%, #090909 50%, #1b0000 75%, #000000 100%);
}

html.dark .particle {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    opacity: 0.6;
}

html.dark .shape {
    border-color: rgba(166, 9, 47, 0.3);
}

html.dark .orb {
    background: radial-gradient(circle at 30% 30%, rgba(255, 23, 68, 0.8), rgba(166, 9, 47, 0.4), transparent);
}

/* Header Navigation */
.header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo {
    background-image: url("../img/logo_light.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center left;
    display: block;
    width: 180px;
    height: 60px;
    flex-shrink: 0;
}

html.dark .logo {
    background-image: url("../img/logo.png");
}

@media (max-width: 1200px) {
    .logo {
        width: 160px;
        height: 50px;
    }
}
@media (max-width: 900px) {
    .logo {
        width: 140px;
        height: 45px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-link.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
}

.nav-link.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(166, 9, 47, 0.4);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

html.dark .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

html.dark .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

html.dark .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Login Form */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Contact Form Container */
.contact-container {
    background: rgba(255, 255, 255, 0.95); /* Reprend le fond du login-container */
    backdrop-filter: blur(30px); /* Reprend le blur du login-container */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Reprend la bordure du login-container */
    border-radius: 25px; /* Reprend le border-radius du login-container */
    padding: 3rem 2.5rem; /* Reprend le padding du login-container */
    width: 100%;
    max-width: 600px; /* **Largeur augmentée pour le formulaire de contact** */
    box-shadow: var(--shadow-lg); /* Reprend l'ombre du login-container */
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1); /* Reprend l'animation du login-container */
}

/* Animations et pseudo-éléments pour contact-container comme pour login-container */
.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

.contact-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(166, 9, 47, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 4s ease-in-out infinite;
}

html.dark .contact-container {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes breathe {
    0%, 100% { transform: scale(1) translateY(-50%); opacity: 0.3; }
    50% { transform: scale(1.2) translateY(-50%); opacity: 0.6; }
}

html.dark .login-container {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fbfbfb;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(166, 9, 47, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--text-muted);
}

html.dark .form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

html.dark .form-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

html.dark .info-message{
    color: var(--text-primary);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox:checked {
    background: var(--primary);
    transform: scale(1.1);
}

.checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

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

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-light);
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(166, 9, 47, 0.3);
}

.login-button {
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-button::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;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(166, 9, 47, 0.4);
}

.login-button:active {
    transform: translateY(-1px);
}

.register-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: var(--primary-light);
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(166, 9, 47, 0.3);
}

/* Status Messages */
.status-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.status-message.success {
    background: rgba(74, 222, 128, 0.1);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-message.error {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Laravel Error and Success Messages */
.error-message {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #dc2626;
    border: 1px solid rgba(248, 113, 113, 0.4);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.2);
}

.error-message::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #dc2626;
    font-size: 1.1rem;
}

.success-message {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #16a34a;
    border: 1px solid rgba(74, 222, 128, 0.4);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.success-message::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #16a34a;
    font-size: 1.1rem;
}

/* Laravel Validation Errors Component Styling */
.font-medium.text-red-600 {
    color: #dc2626 !important;
    font-weight: 600;
    font-size: 1rem;
}

.text-sm.text-red-600 {
    color: #dc2626 !important;
    font-size: 0.9rem;
}

/* Style pour la nouvelle structure d'erreurs de validation */
ul.text-sm.text-red-600 {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.2);
    animation: slideIn 0.3s ease-out;
    list-style: none; /* Enlève complètement les puces */
}

ul.text-sm.text-red-600 li {
    margin-bottom: 0.25rem;
    color: #dc2626;
    font-weight: 500;
    position: relative;
    padding-left: 0; /* Pas d'indentation */
}

ul.text-sm.text-red-600 li:last-child {
    margin-bottom: 0;
}

/* Ancienne classe pour compatibilité */
.list-disc.list-inside.text-sm.text-red-600 {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.2);
    animation: slideIn 0.3s ease-out;
    list-style: none; /* Enlève les puces même ici */
}

.list-disc.list-inside.text-sm.text-red-600 li {
    margin-bottom: 0.25rem;
    color: #dc2626;
    font-weight: 500;
    padding-left: 0; /* Pas d'indentation */
}

/* Laravel Success Status Component Styling */
.font-medium.text-sm.text-green-600 {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #16a34a !important;
    border: 1px solid rgba(74, 222, 128, 0.4);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.font-medium.text-sm.text-green-600::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #16a34a;
    font-size: 1.1rem;
}

/* Info message styling */
.info-message {
    background: rgba(96, 165, 250, 0.1);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 400;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .header-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .logo {
        width: 120px;
        height: 40px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        padding: 0.6rem;
    }

    .main-content {
        padding: 1rem;
        min-height: calc(100vh - 200px);
    }

    .login-container, .contact-container { /* Applique aussi aux contact-container */
        padding: 2rem 1.5rem;
        margin-top: 1rem;
        max-width: 90%; /* Ajuste la largeur max pour les petits écrans */
    }

    .login-title {
        font-size: 1.75rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .particles .particle {
        display: none;
    }

    .floating-orbs .orb {
        opacity: 0.5;
    }
}

@media (max-width: 580px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0;
    }

    .header-container {
        padding: 0 0.75rem;
    }

    .logo {
        width: 100px;
        height: 35px;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        padding: 0.5rem;
    }

    .login-container, .contact-container { /* Applique aussi aux contact-container */
        padding: 1.5rem 1rem;
    }

    .form-input {
        padding: 0.875rem 1rem;
    }

    .login-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}



.notification-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0;
}

.notification-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.notification-slider {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: #374151;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-checkbox:checked + .notification-slider {
    background-color: #a6092f;
    box-shadow: inset 0 2px 4px rgba(246, 112, 130, 0.3);
}

.notification-checkbox:checked + .notification-slider:before {
    transform: translateX(24px);
}

.notification-slider:hover {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notification-label {
    color: var(--text-primary, #e5e7eb);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.notification-toggle:hover .notification-label {
    color: var(--text-secondary, #d1d5db);
}

/* Dark mode adjustments */
:root.light .notification-slider {
    background-color: #d1d5db;
}

:root.light .notification-checkbox:checked + .notification-slider {
    background-color: #3b82f6;
}

:root.light .notification-label {
    color: var(--text-primary, #374151);
}

:root.light .notification-toggle:hover .notification-label {
    color: var(--text-secondary, #6b7280);
}