.omelyo-login {
  --login-ink: #101a3a;
  --login-muted: #687995;
  --login-blue: #0758ee;
  --login-cyan: #12c5e9;
  --login-line: #dce2ed;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--login-ink);
  background: #f7faff;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

.omelyo-login *,
.omelyo-login *::before,
.omelyo-login *::after { box-sizing: border-box; }

.omelyo-login [hidden] { display: none !important; }

.omelyo-login svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-icon-sprite { position: absolute; }

.login-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding: 42px 16px 26px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 340px 240px at -140px -115px, rgba(32, 136, 255, .48) 0 54%, transparent 55%),
    radial-gradient(ellipse 270px 205px at calc(100% + 155px) -95px, rgba(52, 143, 245, .29) 0 54%, transparent 55%),
    radial-gradient(ellipse 270px 250px at -180px calc(100% + 95px), rgba(20, 108, 238, .45) 0 52%, transparent 53%),
    radial-gradient(ellipse 300px 235px at calc(100% + 190px) calc(100% + 150px), rgba(120, 197, 255, .32) 0 52%, transparent 53%),
    linear-gradient(180deg, #fbfcff 0%, #f4f8ff 100%);
}

.login-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.login-decoration--top-left {
  top: -112px;
  left: -142px;
  width: 320px;
  height: 245px;
  transform: rotate(-18deg);
  background: linear-gradient(135deg, rgba(37, 128, 246, .7), rgba(145, 210, 255, .22));
  clip-path: ellipse(49% 39% at 50% 50%);
}

.login-decoration--top-right {
  top: -135px;
  right: -110px;
  width: 225px;
  height: 210px;
  border: 22px solid rgba(36, 127, 240, .19);
}

.login-decoration--bottom-left {
  bottom: -110px;
  left: -125px;
  width: 235px;
  height: 280px;
  transform: rotate(-18deg);
  background: linear-gradient(145deg, rgba(14, 92, 232, .85), rgba(66, 164, 255, .42));
  clip-path: ellipse(48% 44% at 50% 50%);
}

.login-decoration--bottom-right {
  right: -175px;
  bottom: -150px;
  width: 335px;
  height: 280px;
  border: 26px solid rgba(78, 166, 249, .16);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(570px, 100%);
  margin: auto;
}

.login-brand-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 25px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

/* Reprend le logo CSS et les couleurs de marque déjà utilisés sur l’accueil OMELYO. */
.login-brand__mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 25% 25%, #8ad9ff 0%, #2b8bff 60%, #1b47dd 100%);
  box-shadow: inset -7px -7px 14px rgba(11, 60, 170, .28);
}

.login-brand__mark::after {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #fbfcff;
  content: "";
}

.login-brand__copy {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.login-brand__copy strong {
  color: #101432;
  font-size: clamp(2rem, 5vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1;
}

.login-brand__copy small {
  max-width: 230px;
  color: #64738e;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.login-card {
  padding: 29px 28px 27px;
  border: 1px solid rgba(231, 237, 247, .95);
  border-radius: 29px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 44px rgba(56, 91, 147, .11);
}

.login-card__heading {
  margin: 0 auto 35px;
  text-align: center;
}

.login-card__heading h1 {
  margin: 0;
  color: #0d1535;
  font-size: clamp(2rem, 5.4vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.login-card__heading p {
  margin: 10px 0 0;
  color: #687895;
  font-size: clamp(1rem, 2.7vw, 1.2rem);
  font-weight: 450;
  line-height: 1.35;
}

.login-field + .login-field { margin-top: 21px; }

.login-control {
  display: flex;
  min-width: 0;
  min-height: 88px;
  align-items: center;
  gap: 24px;
  padding: 13px 20px 12px 25px;
  border: 1px solid var(--login-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fcfdff);
  box-shadow: 0 1px 2px rgba(14, 35, 74, .025);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.login-control:focus-within {
  border-color: #76a4f2;
  box-shadow: 0 0 0 3px rgba(28, 105, 230, .09);
}

.login-control__icon {
  flex: 0 0 auto;
  width: 34px !important;
  height: 34px !important;
  color: #075bea;
  stroke-width: 1.8;
}

.login-control__body {
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  min-width: 0;
}

.login-control__body label {
  display: block;
  margin: 0;
  color: #152747;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.login-control__body input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 35px;
  margin: 2px 0 0;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #172744;
  font: inherit;
  font-size: 1.12rem;
  line-height: 1.25;
}

.login-control__body input::placeholder { color: #8997ae; opacity: 1; }

.login-password-toggle {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #68758d;
  cursor: pointer;
}

.login-password-toggle svg { width: 25px !important; height: 25px !important; }
.login-password-toggle .login-eye-off { display: none; }
.login-password-toggle.is-visible .login-eye-on { display: none; }
.login-password-toggle.is-visible .login-eye-off { display: inline; }

.login-error {
  margin: 5px 4px 0 84px;
  color: #b42343;
  font-size: .82rem;
  line-height: 1.35;
}

.login-error:empty { display: none; }

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 21px 5px 25px;
}

.remember-option {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  color: #243651;
  font-size: .97rem;
  cursor: pointer;
}

.remember-option input {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  margin: 0;
  accent-color: #0759ed;
  cursor: pointer;
}

.forgot-link {
  color: #0757e8;
  font-size: .97rem;
  font-weight: 600;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-submit {
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 12px 18px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(105deg, #0755ef 0%, #0868f4 48%, #12c5e9 100%);
  box-shadow: 0 10px 19px rgba(7, 87, 222, .23);
  color: #fff;
  font: inherit;
  font-size: 1.34rem;
  font-weight: 650;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}

.login-submit:hover,
.register-button:hover { filter: brightness(1.04); }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 13px 22px rgba(7, 87, 222, .27); }
.login-submit svg { width: 31px !important; height: 31px !important; }

.login-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #c8ddff;
  border-radius: 11px;
  background: #f1f7ff;
  color: #27466f;
  font-size: .88rem;
  line-height: 1.4;
}

.login-status[data-kind="error"] {
  border-color: #f0c8cf;
  background: #fff6f7;
  color: #a3213e;
}

.login-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 31px 3px 30px;
  color: #76849b;
  font-size: 1.05rem;
}

.login-separator span { height: 1px; background: #d9e0eb; }
.login-separator b { font-weight: 500; }

.register-panel {
  padding: 26px 22px 23px;
  border-radius: 20px;
  background: #f2f7fd;
  text-align: center;
}

.register-panel p {
  margin: 0 0 18px;
  color: #73829b;
  font-size: 1.08rem;
  line-height: 1.4;
}

.register-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1.5px solid #1762ec;
  border-radius: 17px;
  background: rgba(255,255,255,.82);
  color: #0756dc;
  font-size: 1.23rem;
  font-weight: 650;
  text-decoration: none;
  transition: filter .16s ease, background .16s ease;
}

.register-button:hover { background: #fff; }
.register-button svg { width: 25px !important; height: 25px !important; }

.login-demo-note {
  margin: 10px 0 0;
  color: #7a889e;
  font-size: .77rem;
  text-align: center;
}

.login-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 24px auto 0;
  color: #78869b;
  font-size: .86rem;
  text-align: center;
}

.login-legal a { color: inherit; text-decoration: none; }
.login-legal a:hover { color: #0758e9; text-decoration: underline; text-underline-offset: 3px; }
.login-legal > span { width: 1px; height: 18px; background: #cdd5e2; }

@media (max-width: 600px) {
  .login-page { padding: 28px 16px 24px; }
  .login-shell { width: 100%; }
  .login-brand-wrap { margin-bottom: 21px; }
  .login-brand { gap: 10px; }
  .login-brand__mark { width: 56px; height: 56px; }
  .login-brand__mark::after { inset: 15px; }
  .login-brand__copy { gap: 3px; }
  .login-brand__copy strong { font-size: 1.9rem; }
  .login-brand__copy small { max-width: 190px; font-size: .78rem; }
  .login-card { padding: 24px 20px 21px; border-radius: 24px; }
  .login-card__heading { margin-bottom: 25px; }
  .login-card__heading h1 { font-size: clamp(1.82rem, 8vw, 2.18rem); }
  .login-card__heading p { margin-top: 7px; font-size: .98rem; }
  .login-desktop-break { display: none; }
  .login-field + .login-field { margin-top: 15px; }
  .login-control { min-height: 76px; gap: 15px; padding: 10px 12px 9px 15px; border-radius: 15px; }
  .login-control__icon { width: 29px !important; height: 29px !important; }
  .login-control__body label { font-size: .91rem; }
  .login-control__body input { min-height: 31px; font-size: 1rem; }
  .login-password-toggle { flex-basis: 34px; width: 34px; height: 42px; }
  .login-password-toggle svg { width: 23px !important; height: 23px !important; }
  .login-error { margin-left: 59px; font-size: .76rem; }
  .login-options { flex-wrap: wrap; gap: 4px 12px; margin: 15px 2px 19px; }
  .remember-option { min-height: 40px; gap: 9px; font-size: .88rem; }
  .remember-option input { width: 24px; height: 24px; flex-basis: 24px; }
  .forgot-link { font-size: .88rem; }
  .login-submit { min-height: 64px; border-radius: 16px; font-size: 1.12rem; }
  .login-submit svg { width: 26px !important; height: 26px !important; }
  .login-separator { gap: 14px; margin: 23px 2px 22px; }
  .register-panel { padding: 20px 15px 17px; border-radius: 17px; }
  .register-panel p { margin-bottom: 14px; font-size: .94rem; }
  .register-button { min-height: 58px; border-radius: 14px; font-size: 1.08rem; }
  .login-demo-note { font-size: .72rem; }
  .login-legal { gap: 9px; margin-top: 20px; font-size: .76rem; }
}

@media (max-width: 350px) {
  .login-page { padding-inline: 16px; }
  .login-card { padding-inline: 15px; }
  .login-control { gap: 10px; padding-left: 11px; padding-right: 9px; }
  .login-control__body label { font-size: .86rem; }
  .login-control__body input { font-size: .94rem; }
  .login-options { column-gap: 8px; }
  .remember-option { font-size: .82rem; }
  .forgot-link { font-size: .82rem; }
  .register-panel { padding-inline: 12px; }
  .login-legal { column-gap: 7px; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .omelyo-login *,
  .omelyo-login *::before,
  .omelyo-login *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
