/* optic-login.css - Page de connexion aux couleurs de la nouvelle interface (My Optic).
   Ne change que l'apparence : le formulaire, ses champs et son bouton d'origine sont conserves. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root { --om-store: #1f5e3a; --om-font: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif; }

body.om-login {
  font-family: var(--om-font) !important; color: #1f2937;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--om-store) 55%, white) 0%, transparent 60%),
    linear-gradient(160deg, var(--om-store) 0%, color-mix(in srgb, var(--om-store) 70%, black) 100%) !important;
  min-height: 100vh;
}
body.om-login .app-content.content, body.om-login .content-wrapper, body.om-login .content-body { background: transparent !important; }
body.om-login .flexbox-container { min-height: 100vh; display: flex; align-items: center; }

/* Carte */
body.om-login .box-shadow-2 { max-width: 420px; flex: 0 0 420px; box-shadow: none !important; }
body.om-login .card { border: 0 !important; border-radius: 18px !important; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.25) !important; }
body.om-login .card-header { padding: 30px 32px 6px !important; background: #fff !important; }
body.om-login .card-body { padding: 18px 32px 8px !important; }
body.om-login .card-footer { display: none !important; }

/* En-tete : logo + nom (ajoute par optic-login.js) */
body.om-login .card-title { text-transform: none !important; letter-spacing: 0 !important; }
body.om-login .om-login-brand { padding-bottom: 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 4px; }
body.om-login .om-login-logo { width: 58px; height: 58px; border-radius: 16px; background: var(--om-store); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 8px 20px color-mix(in srgb, var(--om-store) 40%, transparent); }
body.om-login .om-login-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #111827; }
body.om-login .om-login-sub { font-size: 13.5px; color: #6b7280; }
body.om-login .tile-login, body.om-login .card-subtitle.line-on-side { display: none !important; }

/* Champs */
body.om-login .form-control.form-control-lg {
  height: 48px !important; border-radius: 12px !important; border: 1px solid #d9dee7 !important; background: #f9fafb !important;
  font-size: 15px !important; font-family: var(--om-font) !important; padding-left: 46px !important; box-shadow: none !important;
}
body.om-login .form-control.form-control-lg:focus { border-color: var(--om-store) !important; background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--om-store) 18%, transparent) !important; }
body.om-login .has-icon-left .form-control-position { top: 0 !important; height: 48px !important; line-height: 48px !important; width: 46px !important; color: #9ca3af; }
body.om-login fieldset.form-group.mb-0 { margin-bottom: 14px !important; }
body.om-login label[for="remember-me"] { font-size: 13.5px; color: #4b5563; margin-left: 4px; cursor: pointer; }
body.om-login .chk-remember { accent-color: var(--om-store); width: 15px; height: 15px; vertical-align: -2px; cursor: pointer; }

/* Bouton */
body.om-login a.enter.btn {
  height: 50px; display: flex !important; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px !important; border: 0 !important; background: var(--om-store) !important; color: #fff !important;
  font-size: 16px !important; font-weight: 600; font-family: var(--om-font) !important; margin-bottom: 18px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--om-store) 35%, transparent) !important; transition: filter .15s, transform .15s;
}
body.om-login a.enter.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Messages d'erreur */
body.om-login #error_container { font-size: 13.5px; }
body.om-login #error_container:not(:empty) { margin-bottom: 10px; }

body.om-login .om-login-foot { text-align: center; color: rgba(255,255,255,.75); font-size: 12px; margin-top: 18px; }

@media (max-width: 480px) { body.om-login .box-shadow-2 { flex: 0 0 92%; max-width: 92%; } }
