:root {
  --auth-navy: #061b31;
  --auth-navy-2: #0a4165;
  --auth-blue: #078ec8;
  --auth-blue-2: #126cf3;
  --auth-cyan: #39d4e7;
  --auth-ink: #13283f;
  --auth-muted: #65758a;
  --auth-border: #dbe5ee;
  --auth-surface: #ffffff;
  --auth-success: #087f5b;
  --auth-danger: #c43845;
}
* { box-sizing: border-box; }
body.auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(57,212,231,.17), transparent 24rem),
    radial-gradient(circle at 88% 78%, rgba(18,108,243,.20), transparent 28rem),
    linear-gradient(135deg, var(--auth-navy), var(--auth-navy-2));
}
.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
}
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: auto;
  padding: 42px 0;
  display: grid;
  place-items: center;
}
.auth-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 32px 90px rgba(0,17,35,.34);
}
.auth-card--compact {
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(430px, 1.22fr);
}
.auth-card--wide { max-width: 1040px; }
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 48px 38px;
  color: #fff;
  background: linear-gradient(155deg, #087eaf, #07385b 72%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-visual::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  bottom: -100px;
  border: 42px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.auth-visual__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #063454;
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, #bff7ff);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}
.auth-visual h2 { margin: 28px 0 10px; font-size: 1.65rem; font-weight: 800; }
.auth-visual p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.auth-visual__note { position: relative; z-index: 1; font-size: .84rem; color: rgba(255,255,255,.68); }
.auth-content { padding: 48px; }
.auth-card--wide .auth-content { padding: 40px 48px 48px; }
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-blue);
  font-size: 1.35rem;
  font-weight: 850;
  text-decoration: none;
}
.auth-brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-2));
  box-shadow: 0 8px 20px rgba(7,142,200,.24);
}
.auth-link { color: #0a70da; font-weight: 650; text-decoration: none; }
.auth-link:hover { color: #064da1; text-decoration: underline; }
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0877a8;
  background: #e9f8fd;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.auth-title { margin: 0 0 10px; color: #10253b; font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 850; letter-spacing: -.035em; }
.auth-subtitle { margin: 0 0 28px; color: var(--auth-muted); line-height: 1.6; }
.auth-form .form-label { margin-bottom: 8px; color: #253b51; font-size: .9rem; font-weight: 700; }
.auth-form .form-control,
.auth-form .form-select {
  min-height: 52px;
  padding: .78rem .95rem;
  border: 1px solid var(--auth-border);
  border-radius: 13px;
  color: var(--auth-ink);
  background-color: #fbfdff;
  box-shadow: none;
}
.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: #38a9d7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7,142,200,.12);
}
.auth-form .input-group > * { border-radius: 13px; }
.auth-form .input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.auth-form .input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.auth-form .form-check-input { width: 1.15rem; height: 1.15rem; border-color: #b9c8d5; }
.auth-form .form-check-input:checked { border-color: var(--auth-blue); background-color: var(--auth-blue); }
.auth-btn {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-2));
  box-shadow: 0 14px 28px rgba(18,108,243,.20);
  transition: transform .2s ease, box-shadow .2s ease;
}
.auth-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 18px 32px rgba(18,108,243,.28); }
.auth-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 15px 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  line-height: 1.5;
}
.auth-alert::before {
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}
.auth-alert--success { color: #075d45; border-color: #a8dfcd; background: #eaf9f3; }
.auth-alert--success::before { content: "✓"; color: #fff; background: var(--auth-success); }
.auth-alert--danger { color: #8f2630; border-color: #f1b9bf; background: #fff0f1; }
.auth-alert--danger::before { content: "!"; color: #fff; background: var(--auth-danger); }
.auth-alert--warning { color: #76520c; border-color: #efd38d; background: #fff9e8; }
.auth-alert--warning::before { content: "!"; color: #fff; background: #b98213; }
.auth-success-panel { padding: 10px 0 2px; text-align: center; }
.auth-success-panel__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #0ca678, #087f5b);
  box-shadow: 0 15px 30px rgba(8,127,91,.22);
}
.auth-footer-link { margin-top: 22px; text-align: center; }
.auth-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #7b8998;
  font-size: .8rem;
}
.auth-security::before { content: "◆"; color: #18a8c5; font-size: .65rem; }
@media (max-width: 820px) {
  .auth-shell { width: min(680px, calc(100% - 24px)); padding: 24px 0; }
  .auth-card--compact { grid-template-columns: 1fr; }
  .auth-visual { min-height: 170px; padding: 28px; }
  .auth-visual h2 { margin: 14px 0 4px; font-size: 1.3rem; }
  .auth-visual__note { display: none; }
  .auth-content, .auth-card--wide .auth-content { padding: 30px; }
}
@media (max-width: 520px) {
  .auth-shell { width: min(100% - 16px, 480px); padding: 12px 0; align-items: start; }
  .auth-card { border-radius: 22px; }
  .auth-visual { min-height: 140px; padding: 22px; }
  .auth-visual__icon { width: 48px; height: 48px; border-radius: 14px; }
  .auth-visual p { display: none; }
  .auth-content, .auth-card--wide .auth-content { padding: 24px 20px 26px; }
  .auth-topbar { margin-bottom: 24px; align-items: flex-start; }
  .auth-brand { font-size: 1.08rem; }
  .auth-brand__mark { width: 32px; height: 32px; }
  .auth-title { font-size: 1.65rem; }
}

