/* Variables (si non définies ailleurs) */ :root { --bg: #ffffff; --text: #666666; --text-h: #1a1a2e; --border: #e0e0e0; --code-bg: #f5f5f5; --cardinal: #ac1634; --deep-blush: #b2455a; } .auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(172, 22, 52, 0.1) 0%, rgba(62, 0, 20, 0.05) 100% ); padding: 20px; position: relative; } /* ✅ Sélecteur de langue en haut à droite */ .auth-lang-switcher { position: fixed; top: 30px; right: 70px; display: flex; gap: 8px; z-index: 1000; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 6px; border-radius: 40px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); border: 1px solid var(--border); } /* Pour RTL (arabe) */ [dir="rtl"] .auth-lang-switcher { right: auto; left: 20px; } /* ✅ Boutons du sélecteur de langue */ .auth-lang-btn { background: transparent; border: none; padding: 6px 14px; border-radius: 30px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-h); transition: all 0.3s ease; font-family: inherit; } .auth-lang-btn:hover { background: rgba(172, 22, 52, 0.1); } .auth-lang-btn.active { background: var(--cardinal); color: white; } /* ✅ Conteneur de la carte (pour que le sélecteur ne la chevauche pas) */ .auth-card { background: var(--bg); border-radius: 32px; padding: 40px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); border: 1px solid var(--border); animation: slideUp 0.5s ease; position: relative; } /* Version alternative: sélecteur à l'intérieur de la carte (si préféré) */ .card-lang-switcher { position: absolute; top: 20px; right: 20px; display: flex; gap: 6px; } [dir="rtl"] .card-lang-switcher { right: auto; left: 20px; } .card-lang-switcher .lang-btn { background: #f0f0f0; border: none; padding: 5px 12px; border-radius: 20px; cursor: pointer; font-size: 11px; font-weight: 600; color: #666; transition: all 0.3s; } .card-lang-switcher .lang-btn.active { background: var(--cardinal); color: white; } @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .auth-header { text-align: center; margin-bottom: 32px; } .auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; } .auth-logo span { font-size: 40px; } .auth-logo h1 { font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, var(--text-h) 0%, var(--cardinal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; } .auth-logo h1 span { color: var(--cardinal); background: none; -webkit-background-clip: unset; background-clip: unset; font-size: 1.8rem; } .auth-header p { color: var(--text); font-size: 14px; } .auth-form { display: flex; flex-direction: column; gap: 20px; } .form-group { display: flex; flex-direction: column; gap: 8px; } .form-group label { font-size: 13px; font-weight: 600; color: var(--text-h); letter-spacing: 0.5px; } .input-icon { display: flex; align-items: center; gap: 12px; background: var(--code-bg); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; transition: all 0.3s ease; } .input-icon:hover { border-color: var(--cardinal); } .input-icon span { font-size: 18px; } .input-icon input { flex: 1; background: none; border: none; outline: none; color: var(--text-h); font-size: 14px; } .input-icon input::placeholder { color: var(--text); opacity: 0.6; } .auth-btn { background: linear-gradient(135deg, var(--cardinal), var(--deep-blush)); color: white; border: none; border-radius: 40px; padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; } .auth-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(172, 22, 52, 0.3); } .auth-btn:disabled { opacity: 0.6; cursor: not-allowed; } .auth-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 12px; padding: 10px 16px; color: #ef4444; font-size: 13px; text-align: center; } .auth-footer { text-align: center; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px; } .auth-footer p { color: var(--text); font-size: 13px; } .switch-btn { background: none; border: none; color: var(--cardinal); font-weight: 600; cursor: pointer; margin-left: 5px; transition: all 0.2s ease; } .switch-btn:hover { text-decoration: underline; } /* ✅ Spinner */ .spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid white; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* ✅ Responsive pour le sélecteur de langue */ @media (max-width: 768px) { .auth-card { padding: 32px 24px; } .auth-logo h1 { font-size: 1.5rem; } .input-icon { padding: 10px 14px; } .auth-lang-switcher { top: 10px; right: 10px; padding: 4px; } .auth-lang-btn { padding: 4px 10px; font-size: 10px; } /* Version carte */ .card-lang-switcher { top: 12px; right: 12px; } .card-lang-switcher .lang-btn { padding: 3px 8px; font-size: 9px; } } /* ✅ Dark mode support (optionnel) */ @media (prefers-color-scheme: dark) { :root { --bg: #1a1a2e; --text: #a0a0a0; --text-h: #ffffff; --border: #2d2d4a; --code-bg: #0f0f1a; } .auth-lang-switcher { background: rgba(0, 0, 0, 0.8); } }