 /* Variables CSS - Thème FINEX FACTURA */
 :root {
     --primary: #0284c7;
     --primary-dark: #0369a1;
     --primary-light: #0ea5e9;
     --success: #10b981;
     --danger: #ef4444;
     --warning: #f59e0b;

     --gray-50: #f9fafb;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-300: #d1d5db;
     --gray-400: #9ca3af;
     --gray-500: #6b7280;
     --gray-600: #4b5563;
     --gray-700: #374151;
     --gray-800: #1f2937;
     --gray-900: #111827;

     --bg-page: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
     --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
     --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
     --radius: 10px;
     --radius-lg: 14px;
     --radius-xl: 20px;
     --transition: all 0.25s ease;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 body {
     font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     background: var(--bg-page);
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 20px;
     position: relative;
     overflow: hidden;
 }

 /* Formes flottantes décoratives */
 .floating-shape {
     position: absolute;
     border-radius: 50%;
     opacity: 0.1;
     animation: float 8s ease-in-out infinite;
     filter: blur(40px);
 }

 .shape-1 {
     width: 400px;
     height: 400px;
     background: linear-gradient(135deg, var(--primary-light), var(--primary));
     top: -100px;
     left: -100px;
     animation-delay: 0s;
 }

 .shape-2 {
     width: 300px;
     height: 300px;
     background: linear-gradient(135deg, var(--primary), var(--primary-dark));
     bottom: -50px;
     right: -50px;
     animation-delay: 2s;
 }

 .shape-3 {
     width: 250px;
     height: 250px;
     background: linear-gradient(135deg, #38bdf8, var(--primary-light));
     top: 50%;
     right: 10%;
     animation-delay: 4s;
 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0px) rotate(0deg);
     }

     50% {
         transform: translateY(-20px) rotate(5deg);
     }
 }

 /* Container principal */
 .auth-container {
     position: relative;
     z-index: 10;
     width: 100%;
     max-width: 450px;
     animation: slideIn 0.6s ease-out;
 }

 @keyframes slideIn {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Card principale */
 .auth-card {
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(20px);
     border-radius: var(--radius-xl);
     padding: 40px;
     box-shadow: var(--shadow-xl);
     border: 1px solid rgba(255, 255, 255, 0.5);
     position: relative;
 }

 /* Élément décoratif coin */
 .corner-decoration {
     position: absolute;
     top: 0;
     right: 0;
     width: 120px;
     height: 120px;
     background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(14, 165, 233, 0.1));
     border-radius: 0 var(--radius-xl) 0 100%;
 }

 /* Header */
 .auth-header {
     text-align: center;
     margin-bottom: 32px;
     position: relative;
 }

 .logo-container {
     width: 70px;
     height: 70px;
     margin: 0 auto 20px;
     background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
     border-radius: var(--radius-lg);
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: var(--shadow-lg);
     transition: var(--transition);
 }

 .logo-container:hover {
     transform: rotate(5deg) scale(1.05);
 }

 .logo-container i {
     font-size: 32px;
     color: white;
 }

 .auth-header h1 {
     font-size: 32px;
     font-weight: 700;
     color: var(--gray-900);
     margin-bottom: 8px;
     background: linear-gradient(135deg, var(--primary), var(--primary-dark));
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 .auth-header p {
     color: var(--gray-600);
     font-size: 16px;
 }

 /* Form */
 .auth-form {
     display: flex;
     flex-direction: column;
     gap: 20px;
 }

 .form-group {
     display: flex;
     flex-direction: column;
     gap: 8px;
 }

 .form-group label {
     font-weight: 600;
     color: var(--gray-700);
     font-size: 14px;
 }

 .input-wrapper {
     position: relative;
 }

 .input-wrapper i {
     position: absolute;
     left: 16px;
     top: 50%;
     transform: translateY(-50%);
     color: var(--gray-400);
     font-size: 16px;
     transition: var(--transition);
 }

 .form-input {
     width: 100%;
     padding: 14px 16px 14px 44px;
     border: 2px solid var(--gray-200);
     border-radius: var(--radius);
     font-size: 15px;
     color: var(--gray-800);
     background: white;
     transition: var(--transition);
 }

 .form-input:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
     transform: translateY(-2px);
 }

 .form-input:focus+i {
     color: var(--primary);
 }

 .form-input::placeholder {
     color: var(--gray-400);
 }

 /* Forgot password */
 .forgot-password {
     text-align: right;
     margin-top: -8px;
 }

 .forgot-password a {
     color: var(--primary);
     text-decoration: none;
     font-size: 14px;
     font-weight: 500;
     transition: var(--transition);
     position: relative;
 }

 .forgot-password a:hover {
     color: var(--primary-dark);
 }

 .forgot-password a::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 0;
     height: 2px;
     background: var(--primary);
     transition: width 0.3s ease;
 }

 .forgot-password a:hover::after {
     width: 100%;
 }

 /* Error message */
 .error-message {
     display: none;
     padding: 12px 16px;
     background: rgba(239, 68, 68, 0.1);
     border-left: 4px solid var(--danger);
     border-radius: var(--radius);
     color: var(--danger);
     font-size: 14px;
     font-weight: 500;
     animation: fadeIn 0.3s ease;
 }

 .error-message.show {
     display: flex;
     align-items: center;
     gap: 8px;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(-10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Submit button */
 .submit-btn {
     padding: 16px;
     background: linear-gradient(135deg, var(--primary), var(--primary-dark));
     color: white;
     border: none;
     border-radius: var(--radius);
     font-size: 16px;
     font-weight: 600;
     cursor: pointer;
     transition: var(--transition);
     box-shadow: var(--shadow);
     position: relative;
     overflow: hidden;
 }

 .submit-btn::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
     transition: left 0.5s ease;
 }

 .submit-btn:hover {
     transform: translateY(-2px);
     box-shadow: var(--shadow-lg);
 }

 .submit-btn:hover::before {
     left: 100%;
 }

 .submit-btn:active {
     transform: translateY(0);
 }

 .submit-btn:disabled {
     opacity: 0.6;
     cursor: not-allowed;
     transform: none;
 }

 .submit-btn.loading {
     pointer-events: none;
 }

 .submit-btn .spinner {
     display: none;
     width: 20px;
     height: 20px;
     border: 3px solid rgba(255, 255, 255, 0.3);
     border-top-color: white;
     border-radius: 50%;
     animation: spin 0.8s linear infinite;
     margin: 0 auto;
 }

 .submit-btn.loading .spinner {
     display: block;
 }

 .submit-btn.loading .btn-text {
     display: none;
 }

 @keyframes spin {
     to {
         transform: rotate(360deg);
     }
 }

 /* Footer */
 .auth-footer {
     margin-top: 24px;
     text-align: center;
     color: var(--gray-600);
     font-size: 15px;
 }

 .auth-footer a {
     color: var(--primary);
     text-decoration: none;
     font-weight: 600;
     transition: var(--transition);
     position: relative;
 }

 .auth-footer a:hover {
     color: var(--primary-dark);
 }

 .auth-footer a::after {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 0;
     height: 2px;
     background: var(--primary);
     transition: width 0.3s ease;
 }

 .auth-footer a:hover::after {
     width: 100%;
 }

 /* Security note */
 .security-note {
     margin-top: 24px;
     text-align: center;
     color: var(--gray-500);
     font-size: 13px;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
 }

 .security-note i {
     color: var(--success);
     font-size: 18px;
 }

 /* Responsive */
 @media (max-width: 500px) {
     .auth-card {
         padding: 28px;
     }

     .auth-header h1 {
         font-size: 28px;
     }

     .logo-container {
         width: 60px;
         height: 60px;
     }

     .logo-container i {
         font-size: 28px;
     }
 }