/* ── WPA AUTH PAGE ── */
:root {
  --auth-teal:    #187d8f;
  --auth-teal-dk: #0f6678;
  --auth-gold:    #f7a621;
  --auth-navy:    #0a1826;
  --auth-dark:    #1a2332;
  --auth-mid:     #4a5568;
  --auth-light:   #8a9bb0;
  --auth-border:  #e5eaf2;
  --auth-bg:      #f4f6f9;
  --auth-white:   #ffffff;
  --auth-green:   #27ae60;
}

*, *::before, *::after { box-sizing: border-box; }

/* Full-width breakout — same technique as jury panel */
.wpa-auth-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--auth-dark);
}

/* ── BRAND PANEL (left) ── */
.wpa-auth-brand {
  flex: 0 0 44%;
  background: linear-gradient(155deg, #071320 0%, #0e4d5e 52%, #187d8f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 52px;
  position: relative;
  overflow: hidden;
}

/* Decorative rings */
.wpa-auth-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.wpa-auth-ring-1 {
  width: 560px; height: 560px;
  top: -140px; right: -160px;
  border: 1px solid rgba(255,255,255,.06);
}
.wpa-auth-ring-2 {
  width: 380px; height: 380px;
  bottom: -100px; left: -120px;
  border: 1px solid rgba(247,166,33,.07);
}
.wpa-auth-ring-3 {
  width: 220px; height: 220px;
  top: 38%; right: -70px;
  border: 1px solid rgba(255,255,255,.04);
}
.wpa-auth-ring-4 {
  width: 140px; height: 140px;
  top: 12%; left: 10%;
  border: 1px solid rgba(247,166,33,.06);
  background: rgba(247,166,33,.03);
}

.wpa-auth-brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.wpa-auth-logo {
  height: 90px;
  width: auto;
  margin-bottom: 36px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Lens / aperture graphic */
.wpa-auth-lens {
  margin: 0 auto 34px;
  width: 136px;
  height: 136px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wpa-auth-lens-svg { width: 100%; height: 100%; }

.wpa-auth-brand-copy { margin-bottom: 32px; }
.wpa-auth-brand-title {
  font-size: 27px;
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -.025em;
  margin: 0 0 12px;
}
.wpa-auth-brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 0;
}

/* Quote */
.wpa-auth-quote {
  font-size: 12.5px;
  color: rgba(255,255,255,.38);
  font-style: italic;
  line-height: 1.65;
  border-left: 2px solid rgba(247,166,33,.35);
  padding-left: 14px;
  text-align: left;
  margin: 0;
}
.wpa-auth-quote cite {
  display: block;
  margin-top: 7px;
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(247,166,33,.65);
}

/* ── FORM PANEL (right) ── */
.wpa-auth-form-panel {
  flex: 1;
  background: var(--auth-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 48px;
  overflow-y: auto;
  min-height: 100vh;
}

.wpa-auth-form-inner {
  width: 100%;
  max-width: 420px;
}

/* ── TAB SWITCHER ── */
.wpa-auth-tabs {
  display: flex;
  background: var(--auth-bg);
  border-radius: 13px;
  padding: 5px;
  margin-bottom: 34px;
  gap: 3px;
}
.wpa-tab-link {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-light);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  line-height: 1;
}
.wpa-tab-link.active {
  background: var(--auth-white);
  color: var(--auth-teal);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.wpa-tab-link:hover:not(.active) { color: var(--auth-mid); }

/* ── TAB CONTENT ── */
.wpa-tab-content { display: none; }
.wpa-tab-content.active { display: block; }

/* ── FORM HEADER ── */
.wpa-auth-form-header { margin-bottom: 28px; }
.wpa-auth-form-title {
  font-size: 25px;
  font-weight: 800;
  color: var(--auth-dark);
  margin: 0 0 6px;
  letter-spacing: -.022em;
}
.wpa-auth-form-sub {
  font-size: 14px;
  color: var(--auth-light);
  margin: 0;
}

/* ── FIELDS ── */
.wpa-field { margin-bottom: 18px; }
.wpa-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-dark);
  margin-bottom: 7px;
  letter-spacing: -.005em;
}
.wpa-required { color: var(--auth-teal); margin-left: 1px; }

.wpa-field-wrap { position: relative; }

.wpa-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-light);
  pointer-events: none;
  transition: color .15s;
}

.wpa-field-wrap input,
.wpa-field-wrap select {
  width: 100%;
  padding: 12px 14px 12px 42px !important;
  border: 1.5px solid var(--auth-border) !important;
  border-radius: 11px !important;
  font-size: 14px;
  line-height: 1.5;
  color: var(--auth-dark);
  background: #fafbfd !important;
  outline: none;
  height: auto !important;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}
.wpa-field-wrap input::placeholder { color: var(--auth-light); }

.wpa-field-wrap input:focus,
.wpa-field-wrap select:focus {
  border-color: var(--auth-teal) !important;
  background: var(--auth-white) !important;
  box-shadow: 0 0 0 4px rgba(24,125,143,.1) !important;
}
.wpa-field-wrap:focus-within .wpa-field-icon { color: var(--auth-teal); }

/* Password visibility toggle */
.wpa-field-wrap--pwd input { padding-right: 44px !important; }
.wpa-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--auth-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
  line-height: 0;
}
.wpa-pwd-toggle:hover { color: var(--auth-teal); }

/* Custom select arrow */
.wpa-field-wrap--select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--auth-light);
  pointer-events: none;
}
.wpa-field-wrap--select select {
  padding-right: 38px !important;
  height: auto !important;
  min-height: 48px;
  line-height: 1.5;
  cursor: pointer;
}

/* Remember me */
.wpa-field-remember { margin-bottom: 22px; margin-top: -2px; }
.wpa-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--auth-mid);
  cursor: pointer;
  user-select: none;
}
.wpa-remember-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--auth-teal);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}

/* ── SUBMIT BUTTON ── */
.wpa-auth-btn {
  display: block;
  width: 100%;
  background: var(--auth-teal);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .01em;
  transition: background .15s, transform .12s, box-shadow .15s;
  margin-top: 2px;
}
.wpa-auth-btn:hover:not(:disabled) {
  background: var(--auth-teal-dk);
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(24,125,143,.3);
}
.wpa-auth-btn:active:not(:disabled) { transform: translateY(0); }
.wpa-auth-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── RESPONSE MESSAGES ── */
.wpa-auth-response { margin-top: 14px; }
.wpa-auth-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}
.wpa-auth-msg--success {
  background: rgba(39,174,96,.09);
  color: #1a7a3a;
  border: 1.5px solid rgba(39,174,96,.2);
}
.wpa-auth-msg--error {
  background: rgba(229,62,62,.07);
  color: #b91c1c;
  border: 1.5px solid rgba(229,62,62,.18);
}

/* ── SWITCH TAB FOOTER ── */
.wpa-auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--auth-light);
  margin-top: 22px;
  margin-bottom: 0;
}
.wpa-switch-tab {
  background: none;
  border: none;
  color: var(--auth-teal);
  font-weight: 700;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-underline-offset: 2px;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .15s;
}
.wpa-switch-tab:hover { text-decoration-color: var(--auth-teal); }

/* ── RESPONSIVE ── */

/* Large tablet */
@media (max-width: 1100px) {
  .wpa-auth-brand { flex: 0 0 40%; padding: 56px 44px; }
  .wpa-auth-brand-title { font-size: 24px; }
  .wpa-auth-logo { height: 76px; }
}

/* Tablet portrait — brand shrinks */
@media (max-width: 900px) {
  .wpa-auth-brand { flex: 0 0 36%; padding: 48px 36px; }
  .wpa-auth-brand-title { font-size: 21px; }
  .wpa-auth-logo { height: 64px; margin-bottom: 26px; }
  .wpa-auth-lens { width: 110px; height: 110px; margin-bottom: 26px; }
  .wpa-auth-form-panel { padding: 44px 36px; }
}

/* Large mobile — brand hidden, form takes full screen */
@media (max-width: 720px) {
  .wpa-auth-page { flex-direction: column; }
  .wpa-auth-brand { display: none; }
  .wpa-auth-form-panel {
    min-height: 100vh;
    padding: 48px 28px 52px;
    align-items: flex-start;
  }
  .wpa-auth-form-inner { max-width: 100%; }
}

/* Small mobile */
@media (max-width: 480px) {
  .wpa-auth-form-panel { padding: 28px 18px 44px; }
  .wpa-auth-form-title { font-size: 22px; }
  .wpa-auth-tabs { margin-bottom: 26px; }

  /* Prevent iOS auto-zoom on focus (inputs must be >= 16px) */
  .wpa-field-wrap input,
  .wpa-field-wrap select { font-size: 16px !important; }

  .wpa-auth-btn { padding: 13px; font-size: 15px; }
  .wpa-field { margin-bottom: 15px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .wpa-auth-form-panel { padding: 22px 14px 40px; }
  .wpa-auth-form-title { font-size: 20px; }
  .wpa-tab-link { font-size: 13px; padding: 9px 10px; }
}
