.auth-page-shell {
  min-height: calc(100vh - 92px);
  padding: 64px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 87, 184, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(0, 87, 184, 0.07), rgba(250, 204, 21, 0.04) 42%, rgba(210, 38, 48, 0.06)),
    #f6f8fb;
  color: #111827;
}

.auth-layout {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.74fr);
  gap: 28px;
  align-items: center;
}

.auth-panel,
.auth-card {
  border-radius: 8px;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  padding: 42px 38px;
  background:
    linear-gradient(115deg, rgba(4, 13, 30, 0.92) 0%, rgba(7, 22, 47, 0.74) 56%, rgba(7, 22, 47, 0.48) 100%),
    url("/images/23344.jpg") center / cover no-repeat;
  color: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  min-height: 560px;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #0057b8 0%, #0057b8 33%, #facc15 33%, #facc15 66%, #d22630 66%, #d22630 100%);
}

.auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.auth-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.auth-brand-mini {
  display: inline-flex;
  align-items: center;
  margin-bottom: 34px;
}

.auth-brand-mini img {
  width: 148px;
  height: auto;
  display: block;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

.auth-panel h1 {
  margin: 22px 0 14px;
  color: #fff;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-panel p {
  max-width: 520px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.75;
}

.auth-benefit-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefit-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: #e8eef8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-benefit-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.auth-panel-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 700;
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 430px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 1) 28%),
    #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
  justify-self: center;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0057b8 0%, #0057b8 33%, #facc15 33%, #facc15 66%, #d22630 66%, #d22630 100%);
}

.auth-card-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 11px 7px 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #0f3f7b;
  font-size: 12px;
  font-weight: 900;
}

.auth-card-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0057b8;
  color: #fff;
  font-size: 14px;
}

.auth-card-head {
  margin-bottom: 22px;
}

.auth-card-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.auth-input-wrap {
  position: relative;
}

.auth-page-shell .auth-icon {
  position: absolute;
  left: 24px !important;
  top: 50%;
  width: 20px !important;
  height: 20px !important;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.auth-page-shell .auth-icon svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
}

.auth-page-shell .auth-input {
  width: 100%;
  min-height: 54px;
  padding-top: 0 !important;
  padding-right: 66px !important;
  padding-bottom: 0 !important;
  padding-left: 78px !important;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  line-height: 54px;
  text-indent: 0 !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-page-shell .auth-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.auth-page-shell .auth-input:focus {
  outline: none;
  border-color: #0057b8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.12);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #eaf1fb;
  color: #0057b8;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #0057b8;
  color: #fff;
  outline: none;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: #0057b8;
}

.auth-link {
  color: #0057b8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.auth-link:hover,
.auth-link:focus-visible {
  color: #003b7a;
  text-decoration: underline;
}

.auth-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #004fa3, #0067d8);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 87, 184, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-submit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #0057b8 0%, #0057b8 33%, #facc15 33%, #facc15 66%, #d22630 66%, #d22630 100%);
}

.auth-submit:hover:not(:disabled),
.auth-submit:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #003f88, #005fc7);
  box-shadow: 0 20px 36px rgba(0, 87, 184, 0.28);
  outline: none;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.76;
}

.auth-submit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-success .auth-submit-link {
  width: min(100%, 230px);
  margin: 0 auto;
}

.auth-footer-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.auth-footer-note a {
  color: #0057b8;
  font-weight: 900;
  text-decoration: none;
}

.auth-footer-note a:hover {
  text-decoration: underline;
}

.auth-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.auth-alert--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.auth-alert--warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.auth-alert--neutral {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.auth-alert-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #991b1b;
  color: #fff;
}

.auth-alert--success .auth-alert-icon {
  background: #16a34a;
}

.auth-alert--warning .auth-alert-icon {
  background: #d97706;
}

.auth-alert--neutral .auth-alert-icon {
  background: #64748b;
}

.auth-alert-icon span {
  color: #fff;
  font-size: 18px;
}

.auth-alert h3 {
  margin: 0 0 4px;
  color: inherit;
  font-size: 15px;
  font-weight: 900;
}

.auth-alert p {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.auth-success {
  display: grid;
  gap: 16px;
  text-align: center;
}

.auth-success-mark {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 8px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 30px;
}

.auth-support-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.auth-support-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.auth-support-list span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf1fb;
  color: #0057b8;
  flex: 0 0 auto;
}

.auth-screenreader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .auth-page-shell {
    padding: 42px 0;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 30px;
  }

  .auth-panel h1 {
    font-size: 36px;
  }
}

@media (max-width: 560px) {
  .auth-layout {
    width: min(100% - 22px, 1120px);
    gap: 16px;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-panel {
    display: none;
  }

  .auth-brand-mini {
    margin-bottom: 22px;
  }

  .auth-panel h1 {
    font-size: 30px;
  }

  .auth-card-head h2 {
    font-size: 24px;
  }

  .auth-options-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
