.auth-body {
  background: #eef5ff;
}

.auth-shell {
  background:
    radial-gradient(circle at 84% 8%, rgba(69, 149, 255, 0.18), transparent 14rem),
    linear-gradient(180deg, #f7fbff 0%, #edf5ff 42%, #f9fcff 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-hero {
  position: relative;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 18px 26px;
  flex-shrink: 0;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 40%, rgba(81, 211, 255, 0.35), transparent 32%),
    linear-gradient(135deg, #095dff 0%, #0039d8 72%);
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/hero-skyline.svg") center bottom / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.auth-hero-inner {
  position: relative;
  z-index: 1;
}

.auth-hero .brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-hero .brand-line img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.auth-hero .brand-line strong {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.auth-hero .slogan-main {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 30, 100, 0.2);
}

.auth-hero .slogan-sub {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.92;
}

.auth-hero .benefit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-hero .benefit-pills span {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px 14px 0;
  padding: 4px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.auth-tabs button {
  padding: 12px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: linear-gradient(135deg, var(--gov-blue), var(--gov-blue-deep));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 58, 158, 0.25);
}

.auth-form-card {
  margin: 14px;
  padding: 20px 18px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.auth-form-card .field {
  margin-bottom: 14px;
}

.auth-form-card .field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink);
}

.auth-form-card .field b {
  color: var(--gov-red);
}

.auth-form-card .input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
}

.auth-form-card .input-wrap:focus-within {
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1);
}

.auth-form-card input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  outline: none;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: stretch;
}

.captcha-row .input-wrap {
  min-width: 0;
}

.captcha-img {
  display: block;
  width: 120px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #eef4ff;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gov-blue) 0%, var(--gov-blue-deep) 100%);
  box-shadow: 0 6px 20px rgba(0, 58, 158, 0.28);
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-submit.is-loading {
  pointer-events: none;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--gov-green);
  min-height: 16px;
}

.field-hint.is-ok {
  color: #0a7a3e;
  font-weight: 600;
}

.field-hint.is-error {
  color: var(--gov-red);
}

.auth-foot-note {
  margin: 12px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-panel[hidden] {
  display: none !important;
}
