/* ============================================================
   BP3IP Jakarta — Auth pages
   Tema: "Jembatan Navigasi" — laut dalam malam hari, instrumen
   navigasi, kuningan kapal. Formal, berjiwa maritim, futuristik
   tanpa terasa seperti template SaaS.
   ============================================================ */

:root {
  --m-abyss:      #020814;
  --m-deep:       #061226;
  --m-ocean:      #0a1d38;
  --m-ocean-2:    #0e274c;
  --m-horizon:    #16365e;

  --m-brass:      #c9a96a;
  --m-brass-2:    #e6c88a;
  --m-beacon:     #ffd89a;
  --m-brass-soft: rgba(201, 169, 106, 0.22);

  --m-line:       rgba(201, 169, 106, 0.22);
  --m-line-soft:  rgba(201, 169, 106, 0.10);

  --m-text:       #e9eef7;
  --m-text-dim:   #95a7c2;
  --m-text-mute:  #566884;

  --m-card-bg:    rgba(8, 21, 42, 0.78);
  --m-input-bg:   rgba(3, 12, 26, 0.75);

  --m-danger:     #ff8a7a;
  --m-success:    #86d8a0;

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body.auth-page {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--m-text);
  background-color: var(--m-abyss);
  background-image:
    radial-gradient(1200px 700px at 18% 0%,  rgba(22, 54, 94, 0.55), transparent 60%),
    radial-gradient(1000px 800px at 95% 30%, rgba(201, 169, 106, 0.08), transparent 55%),
    radial-gradient(900px 900px  at 50% 115%, rgba(14, 39, 76, 0.8), transparent 60%),
    linear-gradient(180deg, var(--m-deep) 0%, var(--m-abyss) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* starfield: tiny faint dots scattered in deep ocean */
body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 78% 15%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 34% 62%, rgba(255, 216, 154, 0.45), transparent 60%),
    radial-gradient(1px 1px at 88% 72%, rgba(255, 255, 255, 0.30), transparent 60%),
    radial-gradient(1px 1px at 22% 88%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 65% 40%, rgba(201, 169, 106, 0.35), transparent 60%),
    radial-gradient(1px 1px at 48% 8%,  rgba(255, 255, 255, 0.30), transparent 60%);
  z-index: 0;
  animation: authTwinkle 9s ease-in-out infinite;
}

@keyframes authTwinkle {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* subtle meridian lines suggesting nautical chart */
body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(201, 169, 106, 0.06) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(201, 169, 106, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  z-index: 0;
}

/* ---------------- layout ---------------- */
.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.auth-brand-col {
  position: relative;
  padding: 3rem 3rem 2rem;
  overflow: hidden;
  border-right: 1px solid var(--m-line-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-form-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

/* ---------- brand panel ---------- */

/* sonar sweep: rotating radial sweep behind content */
.sonar {
  position: absolute;
  right: -12%;
  top: 42%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.sonar .ring {
  fill: none;
  stroke: var(--m-line);
  stroke-width: 1;
}
.sonar .ring.dash { stroke-dasharray: 2 6; opacity: 0.5; }
.sonar .axis { stroke: var(--m-line-soft); stroke-width: 1; }
.sonar .sweep {
  transform-origin: 310px 310px;
  animation: sonarRotate 7s linear infinite;
}
@keyframes sonarRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* moving blip */
.sonar .blip {
  fill: var(--m-beacon);
  filter: drop-shadow(0 0 6px var(--m-brass-2));
  animation: blipFade 7s ease-in-out infinite;
}
@keyframes blipFade {
  0%, 100% { opacity: 0; }
  40%      { opacity: 0; }
  50%      { opacity: 1; }
  70%      { opacity: 0.3; }
}

.brand-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.brand-head .seal {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(230, 200, 138, 0.25), rgba(201, 169, 106, 0.08) 60%, transparent);
  border: 1px solid var(--m-line);
  box-shadow: 0 0 20px rgba(201, 169, 106, 0.1), inset 0 0 12px rgba(201, 169, 106, 0.08);
  flex-shrink: 0;
}
.brand-head .seal img { width: 38px; height: 38px; object-fit: contain; }

.brand-wordmark .kw {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--m-brass-2);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}
.brand-wordmark .coord {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--m-text-mute);
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: var(--m-text);
}
.brand-title .gold {
  background: linear-gradient(135deg, var(--m-brass-2), var(--m-beacon) 60%, var(--m-brass));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  display: inline-block;
}

.brand-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 1.25rem;
  color: var(--m-brass);
}
.brand-rule .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--m-line), transparent);
}
.brand-rule .star {
  width: 14px; height: 14px;
  color: var(--m-brass-2);
  filter: drop-shadow(0 0 6px rgba(230, 200, 138, 0.4));
}

.brand-tagline {
  color: var(--m-text-dim);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

/* dispatch cards — banner data with portrait thumbnail, no crop */
.notice-list {
  margin-top: 0.5rem;
}

.notice {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
  padding: 0.7rem 2.25rem 0.7rem 0.7rem;
  background: linear-gradient(135deg, rgba(201, 169, 106, 0.08), rgba(14, 39, 76, 0.55));
  border: 1px solid var(--m-line);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  margin-bottom: 0.55rem;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.notice:hover,
.notice:focus-visible {
  border-color: var(--m-brass);
  transform: translateX(2px);
  background: linear-gradient(135deg, rgba(201, 169, 106, 0.14), rgba(14, 39, 76, 0.7));
  outline: none;
}
.notice:focus-visible { box-shadow: 0 0 0 2px var(--m-brass-soft); }

.notice-chevron {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--m-brass-2);
  opacity: 0.6;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s ease, opacity .2s ease, color .2s ease;
}
.notice:hover .notice-chevron,
.notice:focus-visible .notice-chevron {
  opacity: 1;
  color: var(--m-beacon);
  transform: translateY(-50%) translateX(3px);
}

/* ---------- banner modal ---------- */
.b-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  animation: bmFade .2s ease;
}
.b-modal[hidden] { display: none !important; }
@keyframes bmFade { from { opacity: 0; } to { opacity: 1; } }

.b-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, 0.78);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  cursor: pointer;
}

.b-modal-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(90vh, 720px);
  background: var(--m-card-bg);
  border: 1px solid var(--m-line);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
          backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.3) inset;
  overflow: hidden;
  animation: bmRise .25s cubic-bezier(.2,.9,.3,1);
}
@keyframes bmRise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.b-modal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--m-brass-soft), transparent);
  pointer-events: none;
}

.b-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--m-line);
  background: rgba(3, 12, 26, 0.7);
  color: var(--m-text-dim);
  border-radius: 3px;
  cursor: pointer;
  z-index: 5;
  transition: color .15s, border-color .15s, background .15s;
}
.b-modal-close:hover {
  color: var(--m-beacon);
  border-color: var(--m-brass);
  background: rgba(201, 169, 106, 0.1);
}

.b-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  max-height: min(90vh, 720px);
}

.b-modal-media {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 29, 56, 0.9), rgba(3, 12, 26, 0.95)),
    radial-gradient(circle at 50% 50%, rgba(201, 169, 106, 0.08), transparent 60%);
  border-right: 1px solid var(--m-line-soft);
  display: grid;
  place-items: center;
  padding: 1.75rem;
  min-height: 320px;
  max-height: 720px;
}
.b-modal-media img {
  max-width: 100%;
  max-height: 620px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid var(--m-brass-soft);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.b-modal-media .no-img {
  color: var(--m-text-mute);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  gap: 0.5rem;
}
.b-modal-media .no-img i { font-size: 2.5rem; color: var(--m-brass); opacity: 0.6; }

.b-modal-text {
  padding: 2.5rem 2.25rem 2.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.b-modal-text .auth-kicker { margin-bottom: 0.75rem; }

.b-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.b-modal-sub {
  color: var(--m-brass-2);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  font-weight: 500;
}
.b-modal-sub:empty { display: none; }

.b-modal-content {
  color: var(--m-text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
  padding-top: 0.75rem;
  border-top: 1px solid var(--m-line-soft);
}
.b-modal-content:empty { display: none; }
.b-modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 0.5rem 0;
}
.b-modal-content a {
  color: var(--m-brass-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.b-modal-content a:hover { color: var(--m-beacon); }
.b-modal-content p { margin: 0 0 0.75rem; }
.b-modal-content p:last-child { margin-bottom: 0; }
.b-modal-content strong { color: var(--m-text); }

/* modal responsive */
@media (max-width: 767px) {
  .b-modal { padding: 0.75rem; }
  .b-modal-card { max-height: 92vh; border-radius: 4px; }
  .b-modal-body {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .b-modal-media {
    min-height: 220px;
    padding: 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--m-line-soft);
  }
  .b-modal-media img { max-height: 320px; }
  .b-modal-text { padding: 1.5rem 1.25rem 1.75rem; }
  .b-modal-title { font-size: 1.3rem; }
  .b-modal-sub   { font-size: 0.88rem; }
  .b-modal-content { font-size: 0.85rem; }
}

@media (max-width: 991px) {
  /* on mobile the brand panel is hidden — move notice-list shown separately? No, it stays hidden */
}

/* portrait thumbnail with brass frame + pin */
.notice-thumb {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 82px;
  border-radius: 3px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 29, 56, 0.7), rgba(3, 12, 26, 0.9));
  border: 1px solid var(--m-brass-soft);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  color: var(--m-brass-2);
}
.notice-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) brightness(0.95);
}
.notice-thumb i { font-size: 1.3rem; }

/* small brass pin at top-center of thumbnail */
.notice-thumb .pin {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe0a6, var(--m-brass) 70%, #7a5a22);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 6px rgba(201, 169, 106, 0.55);
  z-index: 2;
}

/* subtle tape strip at bottom right corner */
.notice-thumb::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 16px; height: 16px;
  background: linear-gradient(135deg, transparent 50%, rgba(201, 169, 106, 0.25) 50%);
  pointer-events: none;
}

.notice .notice-body { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.notice .notice-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--m-brass-2);
  margin-bottom: 0.15rem;
}
.notice .notice-title {
  font-weight: 700;
  color: var(--m-text);
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0 0 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice .notice-sub {
  font-size: 0.78rem;
  color: var(--m-text-dim);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* feature pills */
.pillars {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 1.25rem;
}
.pillar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--m-text-dim);
  background: rgba(10, 29, 56, 0.6);
  border: 1px solid var(--m-line-soft);
  border-radius: 100px;
}
.pillar i { color: var(--m-brass-2); font-size: 0.8rem; }

/* bottom wave */
.waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}
.waves svg { width: 100%; height: 100%; display: block; }
.waves .wv {
  fill: none;
  stroke: var(--m-brass);
  stroke-width: 1;
  opacity: 0.35;
  animation: waveDrift 18s linear infinite;
}
.waves .wv.b { opacity: 0.18; animation-duration: 26s; animation-direction: reverse; }
@keyframes waveDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-120px); }
}

/* brand footer */
.brand-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--m-text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 1.5rem;
  border-top: 1px solid var(--m-line-soft);
}
.brand-foot .status { color: var(--m-success); display: inline-flex; align-items: center; gap: 0.45rem; }
.brand-foot .status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--m-success);
  box-shadow: 0 0 8px rgba(134, 216, 160, 0.6);
  animation: authPulse 2.4s ease-in-out infinite;
}
@keyframes authPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- form card ---------- */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  padding: 3rem 2.25rem 2.5rem;
  background: var(--m-card-bg);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
          backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid var(--m-line);
  border-radius: 4px;   /* crisp edges, instrument panel feel */
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.3) inset;
}

/* instrument corner brackets */
.auth-card .corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--m-brass);
  pointer-events: none;
}
.auth-card .corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.auth-card .corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.auth-card .corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.auth-card .corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* hairline top highlight */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--m-brass-soft), transparent);
  pointer-events: none;
}

/* small kicker above title */
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m-brass-2);
  margin-bottom: 0.9rem;
}
.auth-kicker .star {
  width: 11px; height: 11px;
  color: var(--m-brass-2);
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.auth-subtitle {
  color: var(--m-text-dim);
  font-size: 0.92rem;
  margin: 0 0 1.85rem;
  max-width: 42ch;
}

/* field */
.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-brass);
  margin-bottom: 0.45rem;
}
.auth-field label .req {
  color: var(--m-text-mute);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: normal;
  text-transform: none;
}

.auth-card .form-control,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"] {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--m-text) !important;
  background: var(--m-input-bg) !important;
  border: 1px solid var(--m-line) !important;
  border-radius: 3px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-card .form-control:focus,
.auth-card input:focus {
  outline: none;
  border-color: var(--m-brass) !important;
  background: rgba(3, 12, 26, 0.95) !important;
  box-shadow: 0 0 0 1px var(--m-brass), 0 0 16px rgba(201, 169, 106, 0.18) !important;
}
.auth-card .form-control::placeholder { color: rgba(86, 104, 132, 0.8); }
.auth-card .form-control.gabang,
.gabang {
  border-color: var(--m-danger) !important;
  box-shadow: 0 0 0 1px var(--m-danger) !important;
}

.auth-password-wrap { position: relative; }
.auth-password-wrap .form-control { padding-right: 2.75rem; }
.auth-password-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0;
  background: transparent;
  color: var(--m-text-mute);
  border-radius: 3px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.auth-password-toggle:hover { color: var(--m-brass-2); background: rgba(201, 169, 106, 0.08); }
.auth-password-toggle i { font-size: 1.05rem; line-height: 1; }

/* meta row (links) */
.auth-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0.15rem 0 1.25rem;
}

.auth-link {
  color: var(--m-brass-2) !important;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.auth-link:hover { color: var(--m-beacon) !important; border-bottom-color: var(--m-brass); }

/* primary button — brass ingot */
.auth-card .btn,
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 50px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .2s, background .25s;
}
.auth-card .btn-primary {
  color: #1a1003;
  background: linear-gradient(180deg, #f0d492 0%, var(--m-brass-2) 35%, var(--m-brass) 100%);
  box-shadow:
    0 1px 0 rgba(255, 239, 200, 0.35) inset,
    0 -1px 0 rgba(90, 62, 15, 0.35) inset,
    0 12px 28px -12px rgba(201, 169, 106, 0.55);
}
.auth-card .btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffe0a6 0%, #efc888 45%, #d4b478 100%);
  color: #1a1003;
  box-shadow:
    0 1px 0 rgba(255, 239, 200, 0.45) inset,
    0 -1px 0 rgba(90, 62, 15, 0.4) inset,
    0 16px 34px -12px rgba(201, 169, 106, 0.7);
}
.auth-card .btn-primary:active { transform: translateY(0); }

.auth-card .btn-light {
  color: var(--m-text);
  background: transparent;
  border: 1px solid var(--m-line);
}
.auth-card .btn-light:hover {
  color: var(--m-beacon);
  border-color: var(--m-brass);
  background: rgba(201, 169, 106, 0.06);
}

.auth-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.auth-actions .btn { flex: 1; }

/* footer row */
.auth-footer {
  text-align: center;
  color: var(--m-text-dim);
  font-size: 0.88rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--m-line-soft);
}
.auth-footer a {
  color: var(--m-brass-2);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { color: var(--m-beacon); }

.auth-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--m-text-mute);
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

/* error */
#bbr, .breg {
  color: var(--m-danger) !important;
  font-size: 0.78rem;
  margin-top: 0.4rem;
  min-height: 1em;
  display: block;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* password strength meter (preserve existing markup) */
.auth-card [data-kt-password-meter-control="highlight"] {
  margin-top: 0.5rem;
}
.auth-card [data-kt-password-meter-control="highlight"] > div {
  height: 3px !important;
  border-radius: 2px !important;
  background: rgba(201, 169, 106, 0.15) !important;
  margin-right: 4px !important;
}
.auth-card [data-kt-password-meter-control="highlight"] > div:last-child { margin-right: 0 !important; }
.auth-card [data-kt-password-meter-control="highlight"] > div.active {
  background: linear-gradient(90deg, var(--m-brass-2), var(--m-beacon)) !important;
  box-shadow: 0 0 6px rgba(201, 169, 106, 0.5) !important;
}

/* checkbox accent */
.auth-card input[type="checkbox"] { accent-color: var(--m-brass-2); }

/* ---------------- responsive ---------------- */
@media (max-width: 1199px) {
  .auth-brand-col { padding: 2.5rem 2rem 2rem; }
  .auth-form-col { padding: 2.5rem 1.5rem; }
  .brand-title { font-size: 2.1rem; }
  .sonar { width: 500px; height: 500px; right: -18%; }
}

@media (max-width: 991px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-brand-col {
    order: -1;
    padding: 1.75rem 1.25rem 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--m-line-soft);
    min-height: auto;
    justify-content: flex-start;
  }
  .auth-form-col { padding: 1.5rem 1rem 3rem; }
  .sonar, .waves, .pillars, .brand-foot { display: none; }
  .notice-list { margin-top: 0.75rem; max-height: none; }
  .notice { padding: 0.55rem 2rem 0.55rem 0.55rem; margin-bottom: 0.4rem; }
  .notice-thumb { width: 54px; height: 68px; }
  .notice .notice-title { font-size: 0.85rem; }
  .notice .notice-sub { display: none; }
  .brand-title { font-size: 1.55rem; line-height: 1.15; margin-bottom: 0.5rem; }
  .brand-rule { margin: 0.2rem 0 0.75rem; }
  .brand-tagline { font-size: 0.9rem; margin-bottom: 0; }
  .brand-head { margin-bottom: 1rem; gap: 0.65rem; }
  .brand-head .seal { width: 44px; height: 44px; }
  .brand-head .seal img { width: 30px; height: 30px; }
  .brand-wordmark .kw { font-size: 0.65rem; letter-spacing: 0.22em; }
  .brand-wordmark .coord { font-size: 0.62rem; }
  .auth-card {
    max-width: 100%;
    padding: 2.25rem 1.5rem 2rem;
  }
}

@media (max-width: 575px) {
  .auth-brand-col { padding: 1.25rem 1rem 1rem; }
  .brand-head .seal { width: 40px; height: 40px; }
  .brand-head .seal img { width: 26px; height: 26px; }
  .brand-title { font-size: 1.3rem; }
  .brand-tagline { display: none; }
  .notice-list { max-height: 150px; overflow-y: auto; margin-top: 0.5rem; }
  .notice { padding: 0.45rem 1.75rem 0.45rem 0.45rem; }
  .notice-thumb { width: 46px; height: 58px; }
  .notice-chevron { font-size: 1.1rem; right: 6px; }
  .auth-card { padding: 1.75rem 1.25rem 1.5rem; }
  .auth-title { font-size: 1.4rem; }
  .auth-subtitle { font-size: 0.85rem; margin-bottom: 1.25rem; }
  .auth-form-col { padding: 1rem 0.75rem 2rem; }
  .auth-actions { flex-direction: column-reverse; }
  .auth-kicker { font-size: 0.65rem; }
  .auth-card .btn, .auth-btn { letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page::before,
  .sonar .sweep,
  .sonar .blip,
  .waves .wv,
  .brand-foot .status::before { animation: none !important; }
}
