/* Back-office sign-in. Standalone page, palette taken from the calcute.site logo. */
:root {
  --navy: #14284b;
  --navy-2: #1b3a66;
  --teal: #2fb4b1;
  --teal-dark: #1f9390;
  --orange: #fbb26a;
  --ink: #0f1c33;
  --muted: #64748b;
  --line: #dbe3ec;
  --bg: #f5f8fb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.bo-login {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.bo-login__layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }

/* ---------- Brand panel ---------- */
.bo-login__brand {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 180, 177, .35), transparent 45%),
    radial-gradient(circle at 90% 95%, rgba(251, 178, 106, .22), transparent 40%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 55%, #1a5f7a 100%);
}
.bo-login__brand::before,
.bo-login__brand::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); pointer-events: none;
}
.bo-login__brand::before { width: 520px; height: 520px; right: -200px; top: -160px; }
.bo-login__brand::after { width: 380px; height: 380px; left: -140px; bottom: -120px; }

.bo-login__brand-inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 52px; max-width: 640px;
}
.bo-login__logo, .bo-login__mobile-logo {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  font-weight: 700; font-size: 20px; letter-spacing: -.01em;
}
.bo-login__logo img { border-radius: 12px; background: #fff; padding: 3px; }

.bo-login__eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
}
.bo-login__pitch h1 { margin: 0 0 32px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }

.bo-login__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.bo-login__features li { display: flex; gap: 14px; align-items: flex-start; }
.bo-login__features i {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
}
.bo-login__features strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.bo-login__features span { display: block; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.bo-login__copy { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

/* ---------- Form panel ---------- */
.bo-login__panel { display: grid; place-items: center; padding: 40px 24px; }
.bo-login__card {
  width: 100%; max-width: 410px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 34px 28px; box-shadow: 0 1px 2px rgba(15, 28, 51, .04), 0 18px 48px -16px rgba(15, 28, 51, .16);
}
.bo-login__mobile-logo { display: none; color: var(--navy); margin-bottom: 22px; }
.bo-login__mobile-logo img { border-radius: 10px; }

.bo-login__head h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.bo-login__head p { margin: 0 0 26px; color: var(--muted); font-size: 14.5px; }

.bo-form { display: grid; gap: 18px; }
.bo-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.bo-field__row { display: flex; align-items: center; justify-content: space-between; }
.bo-field__row label { margin-bottom: 7px; }

.bo-input { position: relative; }
.bo-input > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #94a3b8; pointer-events: none;
  transition: color .15s;
}
.bo-input input {
  width: 100%; height: 48px; padding: 0 14px 0 44px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.bo-input input::placeholder { color: #a3b1c2; }
.bo-input input:hover { border-color: #c3cfdc; }
.bo-input input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47, 180, 177, .18); }
.bo-input:focus-within > i { color: var(--teal-dark); }
/* Keep browser autofill from painting the field dark/yellow. */
.bo-input input:-webkit-autofill,
.bo-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.bo-toggle {
  border: 0; background: none; padding: 0 0 7px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--teal-dark); cursor: pointer;
}
.bo-toggle:hover { text-decoration: underline; }
.bo-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.bo-field__error { margin: 7px 0 0; font-size: 12.5px; color: #b42318; }

.bo-submit {
  margin-top: 4px; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  box-shadow: 0 1px 2px rgba(15, 28, 51, .12), 0 8px 18px -8px rgba(31, 147, 144, .7);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.bo-submit:hover { filter: brightness(1.05); box-shadow: 0 1px 2px rgba(15, 28, 51, .12), 0 12px 22px -8px rgba(31, 147, 144, .8); }
.bo-submit:active { transform: translateY(1px); }
.bo-submit:focus-visible { outline: 3px solid rgba(47, 180, 177, .4); outline-offset: 2px; }
.bo-submit i { font-size: 18px; transition: transform .15s; }
.bo-submit:hover i { transform: translateX(3px); }

.bo-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; margin-bottom: 18px;
}
.bo-alert i { font-size: 18px; flex: none; margin-top: 1px; }
.bo-alert--error { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.bo-alert--warn { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }

.bo-login__note { margin: 22px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; justify-content: center; }
.bo-login__back { margin: 14px 0 0; text-align: center; font-size: 13px; }
.bo-login__back a { color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.bo-login__back a:hover { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bo-login__layout { grid-template-columns: 1fr; }
  .bo-login__brand { display: none; }
  .bo-login__panel { padding: 24px 16px; align-items: start; padding-top: 8vh; }
  .bo-login__mobile-logo { display: inline-flex; }
  .bo-login__card { padding: 28px 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
