:root {
  --navy: #071c36;
  --green: #36c919;
  --blue: #00a9ed;
  --text: #07152d;
  --muted: #64748b;
  --line: #d8e2ec;
  --surface: #fff;
  --bg: #edf5fa;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, #dceefa, transparent 35%),
    linear-gradient(135deg, #edf5fa, #f7fafc 60%, #e8f5ee);
  min-height: 100vh;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-shell {
  width: min(1160px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 44% 56%;
  overflow: hidden;
  border: 1px solid #d0dce7;
  border-radius: 24px;
  background: #f8fbfd;
  box-shadow: 0 28px 70px rgba(7, 28, 54, 0.16);
}
.auth-brand {
  position: relative;
  padding: 42px 54px;
  background: linear-gradient(155deg, #082b4a, #071c36 65%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.back {
  color: #dce8f2;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.brand-lockup {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand-lockup img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}
.brand-lockup strong {
  display: block;
  font-size: 2rem;
  letter-spacing: 0.05em;
}
.brand-lockup strong span {
  color: var(--green);
}
.brand-lockup small {
  display: block;
  color: #d5e1ea;
}
.kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.auth-brand h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.08;
  margin: 18px 0 20px;
}
.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 44px;
}
.auth-card {
  width: min(500px, 100%);
  padding: 38px 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(7, 28, 54, 0.1);
}
.auth-card.compact {
  padding-block: 28px;
}
.auth-card header {
  margin-bottom: 28px;
}
.auth-card h1 {
  font-size: 2.25rem;
  margin: 7px 0;
}
.auth-card header > p:last-child {
  color: var(--muted);
  margin: 0;
}
.auth-card label {
  display: block;
  font-weight: 750;
  font-size: 0.88rem;
  margin: 18px 0;
}
.auth-card input {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  outline: none;
}
.auth-card input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(54, 201, 25, 0.13);
}
.password-wrap {
  display: flex;
  position: relative;
}
.password-wrap input {
  padding-right: 78px;
}
.password-wrap button {
  position: absolute;
  right: 12px;
  top: 22px;
  border: 0;
  background: transparent;
  color: #33739c;
  font-weight: 700;
  cursor: pointer;
}
.submit-button {
  width: 100%;
  height: 54px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #39ce19, #24a91a);
  color: #fff;
  font: 800 1rem inherit;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(54, 201, 25, 0.23);
}
.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.signup-link {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 20px 0 0;
}
.signup-link a {
  color: #0477b8;
  font-weight: 800;
}
.auth-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: -6px;
}
.auth-help a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #0477b8;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}
.auth-help a:hover {
  text-decoration: underline;
}
.auth-help a:focus-visible {
  outline: 2px solid #0477b8;
  outline-offset: 3px;
  border-radius: 4px;
}
.form-message {
  min-height: 20px;
  color: #bd263a;
  font-size: 0.86rem;
}
.form-message.success {
  color: #19810c;
}
.auth-card small {
  display: block;
  color: #bd263a;
  margin-top: 4px;
}
@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-brand {
    display: none;
  }
  .auth-form-panel {
    padding: 24px;
  }
  .auth-card {
    padding: 30px 24px;
  }
  .auth-page {
    padding: 14px;
  }
}
@media (max-height: 720px) and (min-width: 821px) {
  .auth-shell {
    min-height: 620px;
  }
  .auth-card {
    padding-block: 25px;
  }
  .auth-card label {
    margin: 13px 0;
  }
}
