:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-dark: #111113;
  --text: #19191d;
  --muted: #6b6b74;
  --line: #dedee3;
  --accent: #7b1e2d;
  --accent-2: #9c7426;
  --shadow: 0 22px 70px rgba(15, 15, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.login-shell {
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  min-height: 100svh;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 460px);
  gap: 18px;
}

.brand-stage,
.login-panel {
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.brand-stage {
  min-height: calc(100vh - 56px);
  padding: 42px;
  background: var(--surface-dark);
  color: #f7f7f8;
  display: grid;
  align-content: center;
  gap: 34px;
}

.brand-stage img {
  width: min(260px, 72vw);
  height: auto;
  display: block;
  background: transparent;
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  opacity: 0.62;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: 56px;
  line-height: 1.02;
  font-weight: 780;
}

.intro {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(247, 247, 248, 0.72);
  font-size: 19px;
  line-height: 1.45;
}

.login-panel {
  padding: 34px;
  background: var(--surface);
  display: grid;
  align-content: center;
  gap: 28px;
}

.panel-heading {
  display: grid;
  gap: 8px;
}

.panel-heading h2 {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 780;
}

.panel-heading p {
  color: var(--muted);
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  color: var(--text);
  font-size: 16px;
}

input:focus,
button:focus-visible {
  outline: 3px solid rgba(123, 30, 45, 0.18);
  border-color: var(--accent);
}

.primary-action {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #111113;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:hover {
  background: #2a2a2f;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-error {
  padding: 12px;
  border: 1px solid rgba(166, 55, 45, 0.25);
  border-radius: 8px;
  background: #fff6f5;
  color: #a6372d;
  font-size: 14px;
  font-weight: 760;
}

.security-note {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.security-note span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

@media (max-width: 920px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-stage {
    min-height: auto;
  }

  h1 {
    font-size: 42px;
  }
}

@media (max-width: 560px) {
  .login-shell {
    padding: 12px;
    gap: 12px;
  }

  .brand-stage,
  .login-panel {
    padding: 18px;
  }

  .brand-stage {
    gap: 14px;
  }

  .brand-stage img {
    width: 128px;
  }

  .panel-heading h2 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.02;
  }

  .panel-heading p {
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .intro,
  .security-note {
    font-size: 13px;
  }

  .login-form {
    gap: 12px;
  }

  .security-note {
    align-items: start;
  }
}
