:root {
  --pink: #f53169;
  --pink-dark: #d91f55;
  --orange: #ff8a00;
  --yellow: #ffd43b;
  --green: #16a56a;
  --blue: #258adf;
  --purple: #7c4dcc;
  --cream: #fff8e8;
  --warm-white: #fffdf8;
  --text: #25242a;
  --muted: #77717a;
  --line: #eadfd4;
  --shadow: 0 22px 60px rgba(73, 50, 36, .12);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 212, 59, .28), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(245, 49, 105, .13), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #fff8e8 56%, #fff3f7 100%);
}

button, input { font: inherit; }

.login-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
}

.brand-panel,
.login-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3.1vw, 52px);
}

.brand-card {
  position: relative;
  isolation: isolate;
  width: min(610px, 100%);
  max-height: min(690px, calc(100dvh - 48px));
  padding: 28px 38px 24px;
  border: 1px solid rgba(224, 188, 132, .58);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 212, 59, .35), transparent 30%),
    linear-gradient(150deg, rgba(255, 254, 246, .98) 0%, rgba(255, 246, 211, .96) 58%, rgba(255, 235, 242, .96) 100%);
  box-shadow: 0 26px 72px rgba(136, 79, 37, .15);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 15px;
}

.brand-card::before,
.brand-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.brand-card::before {
  width: 210px;
  height: 210px;
  top: -105px;
  right: -65px;
  background: rgba(255, 138, 0, .12);
}

.brand-card::after {
  width: 260px;
  height: 260px;
  left: -115px;
  bottom: -145px;
  background: rgba(245, 49, 105, .09);
}

.simbita-logo {
  width: 286px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(94, 52, 20, .14));
}

.brand-copy {
  max-width: 520px;
  text-align: center;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(28px, 2.25vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 750;
}

.brand-copy p {
  max-width: 470px;
  margin: 9px auto 0;
  color: #6e625b;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 500;
}

.module-badges {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.module-badges > span {
  min-width: 0;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid rgba(232, 211, 185, .9);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: #5e5048;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.module-badges i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}

.module-badges span:nth-child(1) i { color: var(--pink); background: #ffe4ed; }
.module-badges span:nth-child(2) i { color: var(--orange); background: #fff0dc; }
.module-badges span:nth-child(3) i { color: var(--green); background: #dcf7e9; }
.module-badges span:nth-child(4) i { color: var(--blue); background: #dceefe; }
.module-badges svg { width: 12px; height: 12px; fill: currentColor; }

.login-mascot-companion {
  width: 100%;
  min-height: 126px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(232, 211, 185, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 13px 30px rgba(90, 58, 37, .08);
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.login-mascot {
  width: 110px;
  height: 110px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 10px 13px rgba(120, 53, 15, .16));
}

.mascot-login-text {
  min-width: 0;
  display: grid;
  gap: 5px;
  text-align: left;
}

.mascot-login-text span {
  color: var(--pink-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mascot-login-text strong {
  color: #5b3827;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 750;
}

.brand-note {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #6d4935;
  font-size: 12px;
  font-weight: 700;
}

.brand-note small {
  padding: 4px 9px;
  border: 1px solid #ead7c3;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #8a684f;
  font-size: 10px;
  font-weight: 700;
}

.login-panel { padding-left: clamp(20px, 2.7vw, 46px); }

.login-box {
  width: min(450px, 100%);
  padding: 36px 38px 30px;
  border: 1px solid rgba(230, 217, 207, .86);
  border-radius: 28px;
  background: rgba(255, 253, 249, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hidden { display: none !important; }

.setup-note {
  margin: 2px 0 3px;
  padding: 9px 10px;
  border: 1px solid #e8d7c9;
  border-radius: 10px;
  color: #6f6259;
  background: #fff8ed;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.setup-note span,
.setup-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--login-pink, #f53169);
}
#passwordChangeForm .primary-button { margin-top: 20px; }

.form-heading { margin-bottom: 24px; }

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.login-box h2 {
  margin: 6px 0 6px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 750;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.field-group + .field-group { margin-top: 16px; }

.field-group > label {
  display: block;
  margin: 0 0 7px;
  color: #474149;
  font-size: 13px;
  font-weight: 700;
}

.input-shell {
  position: relative;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(66, 49, 38, .035);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-shell:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(245, 49, 105, .11);
}

.input-icon {
  width: 42px;
  height: 100%;
  color: #a28f84;
  display: grid;
  place-items: center;
  transition: color .18s ease;
}

.input-shell:focus-within .input-icon { color: var(--pink); }
.input-icon svg { width: 17px; height: 17px; fill: currentColor; }

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.input-shell input::placeholder { color: #aaa0a4; }

.password-wrapper { grid-template-columns: 42px minmax(0, 1fr) 46px; }
.password-wrapper input { padding-right: 2px; }

.toggle-password {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8f7a81;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.toggle-password:hover { color: var(--pink); background: #fff0f5; }
.toggle-password:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(245, 49, 105, .16); }
.toggle-password svg { width: 18px; height: 18px; fill: currentColor; }

.options {
  min-height: 24px;
  margin: 16px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recovery-link,
.back-login-link {
  color: var(--pink);
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
}
.recovery-link:hover,
.back-login-link:hover { text-decoration: underline; }

.recovery-page {
  min-height: 100dvh;
  padding: 28px 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 218, 86, .28), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(245, 49, 105, .16), transparent 31%),
    #fffaf2;
}
.recovery-shell {
  width: min(100%, 500px);
  display: grid;
  justify-items: center;
  gap: 14px;
}
.recovery-logo { width: 150px; height: 90px; object-fit: contain; }
.recovery-box { width: 100%; min-height: 0; }
.recovery-box h1 { margin: 0; font-size: 30px; line-height: 1.08; }
.back-login-link { padding: 8px 12px; }
.company-select-logo { width: 74px; height: 74px; object-fit: contain; }
.company-list { margin-bottom: 18px; display: grid; gap: 9px; }
.company-option { cursor: pointer; }
.company-option input { position: absolute; opacity: 0; pointer-events: none; }
.company-option > span {
  padding: 12px 13px;
  border: 1px solid #e6dad2;
  border-radius: 12px;
  background: #fff;
  display: block;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.company-option input:checked + span {
  border-color: var(--pink);
  background: #fff6f8;
  box-shadow: 0 0 0 3px rgba(245,49,105,.11);
}
.company-option strong,
.company-option small { display: block; }
.company-option strong { color: #342d31; font-size: 14px; }
.company-option small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.technical-logout { padding: 7px 11px; border: 0; color: #7c6e75; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.technical-logout:hover { color: var(--pink); }

.remember {
  margin: 0;
  color: #716970;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.remember input {
  position: relative;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #cfc2ba;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.remember input:checked { border-color: var(--pink); background: var(--pink); }

.remember input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember input:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(245, 49, 105, .16); }

.primary-button {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 13px 27px rgba(245, 49, 105, .24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}

.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 31px rgba(245, 49, 105, .29); }
.primary-button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 9px 20px rgba(245, 49, 105, .22); }
.primary-button:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(245, 49, 105, .17), 0 13px 27px rgba(245, 49, 105, .24); }
.primary-button:disabled { cursor: wait; opacity: .68; filter: saturate(.72); box-shadow: 0 8px 18px rgba(245, 49, 105, .16); }
.button-icon, .button-icon svg { width: 17px; height: 17px; }
.button-icon { display: grid; place-items: center; }
.button-icon svg { fill: currentColor; }

.message {
  min-height: 42px;
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #b42350;
  background: transparent;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 650;
  opacity: 0;
  visibility: hidden;
}

.message.is-visible {
  border-color: #ffd0dd;
  background: #fff0f5;
  opacity: 1;
  visibility: visible;
}

.message-icon, .message-icon svg { width: 15px; height: 15px; }
.message-icon { display: grid; place-items: center; }
.message-icon svg { fill: currentColor; }

.footer {
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid #eee4de;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.oblisoft-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  object-position: center;
}

.oblisoft-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.oblisoft-copy strong { color: var(--blue); font-size: 15px; line-height: 1; letter-spacing: .025em; }
.oblisoft-copy span { font-size: 11.5px; line-height: 1.25; }

@media (max-height: 820px) and (min-width: 901px) {
  .brand-panel, .login-panel { padding-block: 22px; }
  .brand-card { max-height: calc(100dvh - 44px); padding: 18px 30px 17px; gap: 10px; border-radius: 28px; }
  .simbita-logo { width: 250px; height: 140px; }
  .brand-copy h1 { font-size: clamp(25px, 2.05vw, 30px); }
  .brand-copy p { margin-top: 6px; font-size: 14px; line-height: 1.35; }
  .module-badges > span { min-height: 34px; padding: 6px 7px; font-size: 11.5px; }
  .login-mascot-companion { min-height: 108px; padding-block: 7px; grid-template-columns: 98px minmax(0, 1fr); }
  .login-mascot { width: 94px; height: 94px; }
  .mascot-login-text strong { font-size: 15px; }
  .brand-note { font-size: 11px; }
  .login-box { padding: 27px 34px 22px; }
  .form-heading { margin-bottom: 18px; }
  .login-box h2 { font-size: 29px; }
  .field-group + .field-group { margin-top: 13px; }
  .input-shell { min-height: 50px; }
  .input-shell input { height: 48px; }
  .options { margin: 13px 0 15px; }
  .primary-button { height: 52px; }
  .message { min-height: 38px; margin-top: 9px; padding-block: 7px; }
  .footer { margin-top: 8px; padding-top: 9px; }
  .oblisoft-mark { width: 38px; height: 38px; flex-basis: 38px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .brand-panel, .login-panel { padding-inline: 22px; }
  .brand-card { padding-inline: 24px; }
  .module-badges { gap: 5px; }
  .module-badges > span { padding-inline: 5px; font-size: 11px; }
  .login-mascot-companion { grid-template-columns: 88px minmax(0, 1fr); }
  .login-mascot { width: 84px; height: 84px; }
}

@media (max-width: 900px) {
  body { overflow-y: auto; }
  .login-page { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .login-panel { min-height: 100dvh; padding: 24px; }
}

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