@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

body {
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-sm {
    font-weight: 300;
}

/* Glassmorphism effect */
.backdrop-blur-2xl {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Input fields: Utiliser les classes Tailwind directement (bg-gray-50 / dark:bg-gray-800) */

/* Dark mode styles */
.dark {
    color-scheme: dark;
}

.dark .bg-gray-50 {
    background-color: #0f172a!important;
}

.dark .bg-white {
    background-color: #1e293b!important;
}

.dark .text-gray-900 {
    color: #ffffff;
}

.dark .text-gray-700 {
    color: #f1f5f9;
}

.dark .text-gray-600 {
    color: #e2e8f0;
}

.dark .text-gray-500 {
    color: #cbd5e1;
}

.dark .text-gray-400 {
    color: #94a3b8;
}

.dark .border-gray-200 {
    border-color: #334155;
}

.dark .bg-gray-50 {
    background-color: #1e293b;
}

.dark .bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1);
}

.dark .border-red-200 {
    border-color: rgba(239, 68, 68, 0.3);
}

.dark .text-red-600,
.dark .text-red-800 {
    color: #fca5a5;
}

.dark .bg-green-50 {
    background-color: rgba(34, 197, 94, 0.1);
}

.dark .border-green-200 {
    border-color: rgba(34, 197, 94, 0.3);
}

.dark .text-green-800 {
    color: #86efac;
}

.dark .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.1);
}

.dark .border-blue-200 {
    border-color: rgba(59, 130, 246, 0.3);
}

.dark .text-blue-800 {
    color: #93c5fd;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-content {
    animation: slideUp 1s ease-out;
}

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

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.dark .input-field:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.3);
}

.bg-gradient {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

/* Dark mode toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 50;
}

.theme-toggle button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dark .theme-toggle button {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .theme-toggle button:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Light mode - colonne gauche blanche */
.left-column-form {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* Dark mode - colonne gauche transparente */
.dark .left-column-form {
    background: transparent !important;
}

/* Light mode - form container */
.form-container {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Dark mode - form container */
.dark .form-container {
    background: rgba(17, 24, 39, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Light mode - TOUS les textes foncés et lisibles */
.form-container h1,
.form-container h2,
.form-container label,
.form-container p {
    color: #1f2937 !important;
}

/* Icônes dans les sections Welcome - foncées */
.form-container .mb-8 i,
.form-container .pb-6 i {
    color: #1f2937 !important;
}

/* Badge du cadenas/package - border noir en light mode */
.form-container .mb-8 > div,
.form-container .pb-6 > div {
    border-color: #1f2937 !important;
}

/* Icône du badge mauve (camion) - TOUJOURS BLANC */
.form-container .bg-gradient i {
    color: #ffffff !important;
}

.form-container input {
    color: #111827 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #d1d5db !important;
}

.form-container input::placeholder {
    color: #9ca3af !important;
}

/* Dark mode - TOUS les textes et icônes BLANCS et GRIS CLAIR */
.dark .form-container h1,
.dark .form-container h2,
.dark .form-container label {
    color: #ffffff !important;
}

.dark .form-container p {
    color: #d1d5db !important;
}

/* Icônes dans les sections Welcome - blanches en dark mode */
.dark .form-container .mb-8 i,
.dark .form-container .pb-6 i {
    color: #ffffff !important;
}

.dark .form-container input {
    color: #ffffff !important;
    background: rgba(31, 41, 55, 0.8) !important;
    border-color: #4b5563 !important;
}

.dark .form-container input::placeholder {
    color: #9ca3af !important;
}

/* Content Overlay - Light mode */
.content-overlay-box {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Content Overlay - Dark mode */
.dark .content-overlay-box {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Error shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

