/* =========================================================
   AUTH CARD — floating split card with decorative blobs
   Used by: login, forgot password, reset password, request callback
   ========================================================= */
:root {
  --ac-navy: #00264D;
  --ac-navy-soft: #0A3D6E;
  --ac-orange: #EF7E1A;
  --ac-page-bg: #fff;
}

html { height: 100%; overflow: hidden; }

.ac-page {
  box-sizing: border-box;
  margin: 0;
  height: 100vh;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--ac-navy);
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Full-viewport diagonal that lines up with the card's internal split */
.ac-bg-navy {
  position: absolute; inset: 0;
  background: var(--ac-page-bg);
  clip-path: polygon(51.7% 0%, 100% 0%, 100% 100%, 41.2% 100%);
  z-index: 1;
}

.ac-blob { position: absolute; border-radius: 30% 70% 65% 35% / 45% 40% 60% 55%; z-index: 1; }

.ac-card {
  /* auto margins (not align-items/justify-content on .ac-page) center this —
     centering via flex alignment clips the top of the card and makes it
     unreachable via scroll once the card is taller than the viewport. */
  margin: auto;
  position: relative; z-index: 2;
  width: 72vw; max-width: 1383px;
  height: 68vh; min-height: 560px; max-height: 100vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 40px 90px rgba(10,20,50,0.25);
  overflow: hidden;
  flex: none;
}

.ac-panel-left {
  /* Bounded to roughly the visible white region (left of the diagonal cut,
     which runs ~40%-50%), not the full card width — centering across the
     full card would land the logo right on/past the diagonal seam. */
  position: absolute; top: 0; bottom: 0; left: 0; right: 55%;
  background:
    radial-gradient(circle, rgba(0,38,77,.14) 1.5px, transparent 1.5px) 0 0 / 22px 22px,
    #fff;
  display: flex; align-items: center; justify-content: center;
}

.ac-panel-right-bg {
  position: absolute; inset: 0;
  background: var(--ac-navy);
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 40% 100%);
}

.ac-panel-right {
  position: absolute; top: 0; bottom: 0; right: 0; left: 50%;
  padding: 4% 4% 4% 4%;
  color: #fff;
  display: flex; flex-direction: column;
}
/* Center vertically via auto margins on the inner wrapper (not
   justify-content:center on the scroll container) — centering with
   justify-content clips the top of the content when it's taller than the
   panel and makes it unreachable even with overflow:auto. Auto-margin
   centering stays fully scrollable. */
.ac-panel-right-inner { margin: auto 0; width: 100%; }

.ac-logo img {   display: block; }

.ac-accent-bar { width: 44px; height: 4px; background: var(--ac-orange); border-radius: 2px; margin-bottom: 20px; }
.ac-eyebrow { font-size: 12px; letter-spacing: 3px; color: #a9b3cc; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.ac-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px; margin: 0 0 14px; font-weight: 700; color: #fff;
}
.ac-sub { color: #aab4cd; font-size: 14px; margin: 0 0 26px; max-width: 480px; line-height: 1.5; }

.ac-msgs {
  position: fixed; top: 24px; right: 24px;
  z-index: 10; width: 92%; max-width: 380px;
  display: flex; flex-direction: column; gap: 8px;
}
.ac-msg {
  font-size: 13px; padding: 12px 16px; border-radius: 8px; line-height: 1.4;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.ac-msg--success { background: rgba(46,204,113,.15); color: #6fe3a3; border: 1px solid rgba(46,204,113,.3); }
.ac-msg--error { background: rgba(231,76,60,.15); color: #f5a199; border: 1px solid rgba(231,76,60,.3); }

.ac-form-row { display: flex; gap: 22px; margin-bottom: 20px; }
.ac-field { flex: 1; display: flex; flex-direction: column; }
.ac-field.ac-full { flex: 1 1 100%; }

.ac-field label {
  font-size: 10.5px; letter-spacing: 1.5px; font-weight: 700; color: #c3cbe0; margin-bottom: 8px;
  text-transform: uppercase;
}

.ac-field input, .ac-field textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  padding: 13px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.ac-field textarea { resize: none; height: 70px; }
.ac-field input::placeholder, .ac-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.ac-field input:focus, .ac-field textarea:focus { border-color: var(--ac-orange); background: rgba(255,255,255,0.1); }

.ac-error { color: #f5a199; font-size: 12px; margin-top: 6px; }

.ac-links { display: flex; align-items: center; justify-content: flex-end; margin: -10px 0 16px; }
.ac-link { color: #c3cbe0; font-size: 12.5px; text-decoration: none; }
.ac-link:hover { color: #fff; text-decoration: underline; }

.ac-submit {
  width: 100%; margin-top: 6px;
  background: linear-gradient(180deg, #f7a63e, var(--ac-orange));
  color: #fff; border: none; padding: 16px; border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer; text-transform: uppercase;
  box-shadow: 0 14px 26px rgba(243,147,30,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ac-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(243,147,30,0.45); }

.ac-back {
  margin-top: 22px; text-align: center; font-size: 13px; color: #9aa4c0;
  text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ac-back:hover { color: #fff; }

@media (max-width: 860px) {
  .ac-page { background: var(--ac-page-bg); }
  .ac-card { width: 94vw; height: auto; overflow-y: auto; }
  .ac-panel-right-bg, .ac-panel-right, .ac-panel-left { position: static; clip-path: none; }
  .ac-panel-left { padding: 40px 20px; }
  .ac-panel-right { padding: 40px 24px; background: var(--ac-navy); }
  .ac-form-row { flex-direction: column; gap: 16px; }
}
