:root {
  --ink: #14201c;
  --muted: #62736d;
  --line: #dce8e2;
  --surface: #ffffff;
  --soft: #f3f7f5;
  --brand: #1f7a5a;
  --brand-dark: #145840;
  --accent: #efc34d;
  --danger: #b94132;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(135deg, rgba(223, 243, 238, 0.92), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(90deg, rgba(31, 122, 90, 0.08) 0 1px, transparent 1px 58px);
}

a {
  color: inherit;
  text-decoration: none;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  gap: 48px;
  align-items: center;
  padding: 48px 7vw;
}

.brand-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #1a1a16;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

.brand-panel p:not(.eyebrow) {
  max-width: 660px;
  color: #31443d;
  font-size: 19px;
  line-height: 1.55;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
}

.security-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(20, 32, 28, 0.12);
}

.card-header {
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.card-header p,
.help-text,
.login-footer,
.otp-notice span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-step {
  display: none;
}

.form-step.active {
  display: grid;
  gap: 16px;
}

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

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
}

input:focus,
select:focus {
  outline: 3px solid rgba(31, 122, 90, 0.16);
  border-color: var(--brand);
}

.primary-btn,
.text-btn {
  min-height: 46px;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn {
  border: 1px solid var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.text-btn {
  border: 0;
  color: var(--brand);
  background: transparent;
}

.otp-notice {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--soft);
}

.otp-notice strong {
  display: block;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.login-footer a:hover {
  color: var(--brand);
}

.error {
  color: var(--danger);
  font-weight: 800;
}

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

  .brand-panel {
    min-height: auto;
    gap: 34px;
  }

  .security-list {
    grid-template-columns: 1fr;
  }
}
