:root {
  color-scheme: light;
  --ds-blue: #23945f;
  --ds-blue-bright: #69d39b;
  --ds-blue-dark: #167348;
  --ds-blue-soft: #e7f5ec;
  --ds-page-bg: #f2f7f3;
  --ds-surface: #ffffff;
  --ds-text: #20222a;
  --ds-muted: #6b7280;
  --ds-border: #d0d8e4;
  --ds-danger: #dc2626;
  --ds-success: #16a34a;
  --ds-warning: #d97706;
  --ink-blue: #123126;
  --ink-soft: #18384b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ds-text);
  background: var(--ds-page-bg);
  font-family: var(--ds-font-family);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(460px, .96fr);
  background: var(--ds-surface);
}

.brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(ellipse at 74% 72%, rgba(105, 211, 155, .20), transparent 34%),
    radial-gradient(ellipse at 18% 18%, rgba(35, 148, 95, .22), transparent 34%),
    linear-gradient(145deg, var(--ink-blue), #0b2118 75%);
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.brand-panel::before {
  width: min(58vw, 690px);
  aspect-ratio: 1;
  right: -23%;
  top: 14%;
  border: 1px solid rgba(105, 211, 155, .16);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(105, 211, 155, .035),
    0 0 0 105px rgba(105, 211, 155, .025);
}

.brand-panel::after {
  width: 560px;
  height: 250px;
  right: -60px;
  bottom: 11%;
  transform: rotate(-17deg);
  border: 1px solid rgba(105, 211, 155, .17);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(35, 148, 95, .12), rgba(105, 211, 155, .025));
  box-shadow: inset 0 0 55px rgba(105, 211, 155, .045);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(105, 211, 155, .35);
  border-radius: 13px;
  background: rgba(35, 148, 95, .18);
  color: var(--ds-blue-bright);
}

.brand-mark svg { width: 23px; height: 23px; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .01em;
}

.brand-caption {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand-copy {
  position: relative;
  max-width: 540px;
  margin: auto 0;
  padding: 78px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  color: #8ce5ae;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ds-blue-bright);
}

.brand-copy h1 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(38px, 5.1vw, 70px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.brand-copy h1 span { color: #7ee2a8; }

.brand-copy > p:last-child {
  max-width: 405px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.67);
  font-size: 15px;
  line-height: 1.85;
}

.panel-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.48);
  font-size: 11px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.72);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #40d69a;
  box-shadow: 0 0 12px rgba(64,214,154,.6);
}

.form-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px clamp(28px, 6vw, 96px);
  background: var(--ds-surface);
}

.login-card {
  width: min(100%, 410px);
}

.mobile-brand { display: none; }

.welcome-label {
  margin: 0 0 12px;
  color: var(--ds-blue-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0;
  color: var(--ds-text);
  font-size: clamp(29px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.intro {
  margin: 12px 0 34px;
  color: var(--ds-muted);
  font-size: 14px;
  line-height: 1.75;
}

.demo-hint { margin: -23px 0 24px; color: var(--ds-blue-dark); font-size: 12px; }

.field { margin-bottom: 21px; }

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

label {
  color: #333a46;
  font-size: 13px;
  font-weight: 650;
}

.forgot {
  color: var(--ds-blue-dark);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.forgot:hover { text-decoration: underline; }

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  outline: none;
  color: var(--ds-text);
  background: #fff;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap input::placeholder { color: #a0a8b4; }

.input-wrap input:focus {
  border-color: var(--ds-blue);
  box-shadow: 0 0 0 4px rgba(35,148,95,.12);
}

.password-input { padding-right: 50px !important; }

.toggle-password {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: var(--ds-muted);
  background: transparent;
  cursor: pointer;
}

.toggle-password:hover { color: var(--ds-blue-dark); background: var(--ds-blue-soft); }
.toggle-password svg { width: 18px; height: 18px; }

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 25px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ds-muted);
  font-size: 12px;
  cursor: pointer;
}

.remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--ds-blue);
}

.submit-button {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--ds-blue-dark);
  box-shadow: 0 8px 18px rgba(22,115,72,.18);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  background: #125b3b;
  box-shadow: 0 10px 22px rgba(22,115,72,.23);
}

.submit-button:focus-visible,
.toggle-password:focus-visible,
.forgot:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(35,148,95,.35);
  outline-offset: 3px;
}

.submit-button svg { width: 17px; height: 17px; }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  color: #87909d;
  font-size: 11px;
}

.secure-note svg { width: 14px; height: 14px; color: var(--ds-success); }

.mobile-footer {
  display: none;
  margin-top: 38px;
  color: #9aa2ae;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); }
  .brand-panel { padding: 38px; }
  .brand-copy h1 { font-size: clamp(36px, 5vw, 54px); }
  .form-panel { padding: 40px; }
}

@media (max-width: 700px) {
  .login-shell { display: block; min-height: 100svh; }
  .brand-panel { display: none; }
  .form-panel {
    min-height: 100svh;
    padding: 34px 24px;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(105,211,155,.12), transparent 31%),
      var(--ds-page-bg);
  }
  .login-card {
    width: min(100%, 420px);
    padding: 32px 26px 28px;
    border: 1px solid rgba(208,216,228,.75);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 55px rgba(18,49,38,.09);
  }
  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 39px;
    color: var(--ink-blue);
    text-decoration: none;
  }
  .mobile-brand .brand-mark {
    color: var(--ds-blue-dark);
    border-color: rgba(35,148,95,.18);
    background: var(--ds-blue-soft);
  }
  .mobile-brand .brand-caption { color: var(--ds-muted); }
  .intro { margin-bottom: 28px; }
  .mobile-footer { display: block; }
}

@media (max-width: 380px) {
  .form-panel { padding: 20px 14px; }
  .login-card { padding: 27px 20px 23px; }
  .mobile-brand { margin-bottom: 32px; }
  .form-options { align-items: flex-start; }
}

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