:root {
  color-scheme: light;
  --ink: #111526;
  --muted: #667085;
  --soft: #eef3fb;
  --line: #d9e2ef;
  --panel: #171a3a;
  --panel-2: #3141b8;
  --brand: #f72f49;
  --brand-hover: #e32741;
  --success-bg: #d8f7df;
  --success-text: #1c9c4c;
  --warn-bg: #fff5c9;
  --warn-text: #8b6500;
  --danger-bg: #ffe0e6;
  --danger-text: #bd1630;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 14%, rgba(214, 225, 244, 0.9), transparent 28%),
    linear-gradient(135deg, #f7faff 0%, #edf2f9 46%, #f8fbff 100%);
  color: var(--ink);
}

.login-shell {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 48px clamp(18px, 5vw, 80px) 34px;
}

.hero-copy {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8a92a6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #101425;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.96;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.subtitle {
  max-width: 930px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 650;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.login-grid > * {
  min-width: 0;
}

.console-panel {
  min-height: 520px;
  border-radius: 30px;
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 82% 88%, rgba(88, 105, 255, 0.85), transparent 34%),
    linear-gradient(135deg, #161838 0%, #181b40 48%, #3341bf 100%);
  color: #fff;
  box-shadow: 0 28px 60px rgba(32, 42, 86, 0.26);
}

.panel-kicker {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.console-panel h2 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.panel-lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.6;
  font-weight: 650;
}

.logic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.logic-tile {
  min-height: 94px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.logic-tile span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.logic-tile strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.signin-card {
  margin-top: 2px;
  border-radius: 28px;
  padding: clamp(26px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 68px rgba(36, 48, 82, 0.16);
}

.form-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  line-height: 1.05;
  font-weight: 900;
}

.form-heading p:last-child {
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

label {
  display: block;
  margin: 0 0 8px;
  color: #394154;
  font-size: 0.92rem;
  font-weight: 800;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid #cdd8e8;
  border-radius: 18px;
  padding: 0 18px;
  background: #f2f6fc;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(20, 28, 46, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus {
  border-color: #7c8cff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(89, 105, 255, 0.14);
}

.password-field {
  position: relative;
  margin-bottom: 16px;
}

.password-field input {
  padding-right: 58px;
}

.icon-button {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: #4b5568;
  cursor: pointer;
}

.icon-button:hover {
  background: #e8eef8;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mode-note {
  margin-bottom: 18px;
  color: #7b8293;
  font-size: 0.95rem;
  font-weight: 650;
}

.form-message {
  min-height: 22px;
  margin-bottom: 14px;
  color: var(--danger-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-message.is-success {
  color: var(--success-text);
}

.submit-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(247, 47, 73, 0.25);
}

.submit-button:hover {
  background: var(--brand-hover);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.preflight {
  width: min(100%, 790px);
  margin-top: 2px;
}

details {
  margin-top: 0;
}

summary {
  min-height: 46px;
  border-radius: 8px 8px 0 0;
  padding: 13px 20px;
  background: #141620;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.preflight-list {
  padding: 18px 18px 0;
}

.preflight-list p {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 18px 20px;
  font-weight: 750;
  line-height: 1.45;
}

.check-ok {
  background: var(--success-bg);
  color: var(--success-text);
}

.check-warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

@media (max-width: 980px) {
  .login-shell {
    padding-top: 34px;
  }

  .login-grid {
    grid-template-columns: 1fr;
  }

  .console-panel {
    min-height: auto;
  }

  .preflight {
    width: 100%;
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .login-shell {
    padding-inline: 14px;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1;
  }

  .subtitle {
    font-size: 0.98rem;
  }

  .hero-copy {
    margin-bottom: 24px;
  }

  .console-panel,
  .signin-card {
    border-radius: 20px;
    padding: 26px;
  }

  .console-panel h2 {
    font-size: 2.15rem;
  }

  .logic-grid {
    grid-template-columns: 1fr;
  }

  .logic-tile {
    min-height: 82px;
  }
}
