/* =====================================================
   auth.css — SunLink Login & Register
   Uses same CSS variables as home.css
===================================================== */

/* ── AUTH HERO ── */
.auth-hero {
  position: relative;
  overflow: hidden;
  background: var(--midnight, #071415);
  padding: 5rem clamp(1.5rem, 5vw, 4rem) 4.5rem;
  margin-top: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.auth-hero-blob {
  position: absolute;
  top: -20%; right: -6%;
  width: 52%; height: 160%;
  background: var(--teal, #5da8ae);
  border-radius: 62% 38% 40% 60% / 40% 30% 70% 60%;
  opacity: .13;
  pointer-events: none;
}
.auth-hero-blob2 {
  position: absolute;
  bottom: -30%; left: -5%;
  width: 36%; height: 120%;
  background: rgba(255,165,0,.15);
  border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
  pointer-events: none;
}
.auth-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.auth-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--teal, #5da8ae);
  margin-bottom: .9rem;
}
.auth-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange, #FFA500);
  animation: authPulse 2s infinite;
}
@keyframes authPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,165,0,.6) }
  50%      { box-shadow: 0 0 0 7px rgba(255,165,0,0) }
}
.auth-hero-title {
  font-family: var(--fd, 'Syne', sans-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: .5rem;
}
.auth-hero-title span { color: var(--orange, #FFA500) }
.auth-hero-sub {
  font-size: clamp(.8rem, 1.2vw, .95rem);
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ── SECTION WRAPPER ── */
.auth-section {
  background: var(--bg-soft, #f2f8f9);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem);
}

/* ── CARD LAYOUT ── */
.auth-card {
  display: grid;
  grid-template-columns: 1fr 340px;
  max-width: 1060px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(7,20,21,.12);
  border: 1px solid rgba(93,168,174,.15);
  align-items: stretch;
}

/* ── FORM PANEL — no inner scroll, expands naturally ── */
.auth-form-panel {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  overflow: visible;
}

/* ── SIDE PANEL — sticky so it stays visible while form is long ── */
.auth-side-panel {
  background: linear-gradient(160deg, var(--midnight, #071415) 0%, #0f2e32 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 2.2rem;
  position: sticky;
  top: 80px;
  align-self: start;
  border-radius: 0 28px 28px 0;
  overflow: hidden;
  min-height: 500px;
}
.auth-side-blob {
  position: absolute;
  bottom: -10%; right: -15%;
  width: 200px; height: 200px;
  background: var(--teal, #5da8ae);
  border-radius: 50%;
  opacity: .12;
  pointer-events: none;
}
.auth-side-blob2 {
  position: absolute;
  top: -8%; left: -12%;
  width: 160px; height: 160px;
  background: var(--orange, #FFA500);
  border-radius: 50%;
  opacity: .10;
  pointer-events: none;
}
.auth-side-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal,#5da8ae), #3d8a90);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(93,168,174,.4);
  position: relative; z-index: 1;
}
.auth-side-title {
  font-family: var(--fd, 'Syne', sans-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: .85rem;
  line-height: 1.2;
  position: relative; z-index: 1;
}
.auth-side-title span { color: var(--orange, #FFA500) }
.auth-side-text {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.auth-side-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .7rem 1.6rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--midnight, #071415);
  background: var(--orange, #FFA500);
  border-radius: 99px;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 14px rgba(255,165,0,.35);
  white-space: nowrap;
  position: relative; z-index: 1;
}
.auth-side-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,165,0,.45);
  gap: 12px;
}
.auth-side-divider {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--teal,#5da8ae), var(--orange,#FFA500));
  border-radius: 2px;
  margin-bottom: 1.2rem;
  position: relative; z-index: 1;
}
.auth-side-features {
  list-style: none;
  margin: 1.2rem 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  position: relative; z-index: 1;
}
.auth-side-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
}
.auth-side-features li i {
  color: var(--teal, #5da8ae);
  font-size: .75rem;
  flex-shrink: 0;
}

/* ── FORM TITLE ── */
.auth-form-title {
  font-family: var(--fd, 'Syne', sans-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text, #0d2224);
  letter-spacing: -.03em;
  margin-bottom: .3rem;
}
.auth-form-sub {
  font-size: .8rem;
  color: var(--text-soft, #7a9fa4);
  margin-bottom: 1.8rem;
}

/* ── TABS ── */
.auth-tabs {
  display: flex;
  background: var(--bg-soft, #f2f8f9);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 1.8rem;
  gap: 4px;
}
.auth-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: .65rem 1rem;
  font-family: var(--fb, 'DM Sans', sans-serif);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-soft, #7a9fa4);
  background: transparent;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: all .25s;
}
.auth-tab-btn i { font-size: .8rem }
.auth-tab-btn.active {
  background: #fff;
  color: var(--teal, #5da8ae);
  box-shadow: 0 2px 12px rgba(93,168,174,.18);
}
.auth-tab-btn:not(.active):hover { color: var(--text, #0d2224) }

.auth-tab-content { display: none }
.auth-tab-content.active { display: block }

/* ── FORM FIELDS ── */
.auth-field {
  margin-bottom: 1rem;
  position: relative;
}
.auth-field label {
  display: block;
  font-size: .73rem;
  font-weight: 700;
  color: var(--text, #0d2224);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}
.auth-field label .optional {
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-soft, #7a9fa4);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--teal, #5da8ae);
  font-size: .82rem;
  z-index: 1;
  pointer-events: none;
}
.auth-input-wrap input,
.auth-input-wrap select,
.auth-input-wrap .form-control {
  width: 100%;
  padding: .72rem 1rem .72rem 2.5rem;
  font-family: var(--fb, 'DM Sans', sans-serif);
  font-size: .87rem;
  color: var(--text, #0d2224);
  background: var(--bg-soft, #f2f8f9);
  border: 1.5px solid rgba(93,168,174,.20);
  border-radius: 12px;
  transition: all .25s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.auth-input-wrap input::placeholder { color: var(--text-soft, #7a9fa4) }
.auth-input-wrap input:focus,
.auth-input-wrap select:focus {
  border-color: var(--teal, #5da8ae);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(93,168,174,.15);
}
.auth-input-wrap select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235da8ae' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
  background-color: var(--bg-soft, #f2f8f9);
}
.auth-input-wrap select:focus { background-color: #fff }

/* Row — two fields side by side */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

/* ── CONDITIONAL COUNTRY FIELD ── */
.auth-conditional {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s cubic-bezier(.25,.46,.45,.94),
              opacity .35s ease,
              margin-bottom .3s ease;
  margin-bottom: 0;
}
.auth-conditional.visible {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 1rem;
}

/* Loading spinner inside select */
.auth-country-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--text-soft, #7a9fa4);
  padding: .5rem 0 .3rem;
}
.auth-country-loading i { color: var(--teal, #5da8ae); animation: spin .8s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }

/* ── PASSWORD REQUIREMENTS ── */
.auth-pwd-reqs {
  background: rgba(93,168,174,.07);
  border: 1px solid rgba(93,168,174,.15);
  border-radius: 10px;
  padding: .7rem 1rem;
  margin-top: .3rem;
  margin-bottom: .9rem;
  font-size: .75rem;
  color: var(--text-mid, #3a5459);
  line-height: 1.6;
}
.auth-pwd-reqs p { font-weight: 700; margin-bottom: .25rem; color: var(--text, #0d2224) }
.auth-pwd-reqs ul { margin: 0; padding-left: 1.1rem }
.auth-pwd-reqs li { margin-bottom: 1px }

/* ── FORM OPTIONS (login) ── */
.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: var(--text-mid, #3a5459);
  cursor: pointer;
}
.auth-remember input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--teal, #5da8ae);
  cursor: pointer;
}
.auth-forgot {
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal, #5da8ae);
  transition: color .2s;
}
.auth-forgot:hover { color: var(--orange, #FFA500) }

/* ── AGREE TERMS ── */
.auth-agree {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 1.3rem;
  font-size: .8rem;
  color: var(--text-mid, #3a5459);
}
.auth-agree input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--teal, #5da8ae);
  cursor: pointer;
  flex-shrink: 0;
}
.auth-agree a { color: var(--teal, #5da8ae); font-weight: 600 }
.auth-agree a:hover { color: var(--orange, #FFA500) }

/* ── SUBMIT BUTTON ── */
.auth-submit {
  width: 100%;
  padding: .9rem 1.5rem;
  font-family: var(--fd, 'Syne', sans-serif);
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--teal,#5da8ae), #3d8a90);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 16px rgba(93,168,174,.35);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(93,168,174,.45);
  background: linear-gradient(135deg, #3d8a90, var(--teal,#5da8ae));
}
.auth-submit:active { transform: translateY(0) scale(.98) }

/* ── SECONDARY LINK ── */
.auth-switch-link {
  text-align: center;
  margin-top: 1.2rem;
  font-size: .8rem;
  color: var(--text-soft, #7a9fa4);
}
.auth-switch-link a { font-weight: 700; color: var(--teal, #5da8ae) }
.auth-switch-link a:hover { color: var(--orange, #FFA500) }

/* ── DISTRICTS ── */
.auth-districts-wrap {
  max-height: 180px;
  overflow-y: auto;
  background: var(--bg-soft, #f2f8f9);
  border: 1.5px solid rgba(93,168,174,.20);
  border-radius: 12px;
  padding: .75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(93,168,174,.3) transparent;
}
.auth-districts-wrap::-webkit-scrollbar { width: 4px }
.auth-districts-wrap::-webkit-scrollbar-thumb { background: rgba(93,168,174,.3); border-radius: 4px }
.auth-districts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
}
.auth-district-item { display: flex; align-items: center; gap: 6px }
.auth-district-item input[type="checkbox"] {
  width: 13px; height: 13px;
  accent-color: var(--teal, #5da8ae);
  cursor: pointer; flex-shrink: 0;
}
.auth-district-item label {
  font-size: .75rem;
  color: var(--text-mid, #3a5459);
  cursor: pointer;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  white-space: nowrap;
}
.auth-districts-hint {
  font-size: .72rem;
  color: var(--text-soft, #7a9fa4);
  margin-top: .4rem;
  display: block;
}

/* ── STEG references ── */
.auth-steg-list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: .6rem }
.auth-steg-item { position: relative }
.auth-steg-remove {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: rgba(239,68,68,.1);
  border: none; border-radius: 7px;
  color: #ef4444;
  font-size: .68rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.auth-steg-remove:hover { background: #ef4444; color: #fff }
.auth-steg-item .auth-input-wrap input { padding-right: 2.8rem }

.auth-add-steg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal, #5da8ae);
  background: rgba(93,168,174,.08);
  border: 1.5px dashed rgba(93,168,174,.35);
  border-radius: 10px;
  padding: .55rem 1rem;
  cursor: pointer;
  transition: all .25s;
  width: 100%;
  justify-content: center;
  font-family: var(--fb, 'DM Sans', sans-serif);
}
.auth-add-steg:hover {
  background: rgba(93,168,174,.16);
  border-color: var(--teal, #5da8ae);
}

/* ── SECTION LABEL ── */
.auth-section-label {
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--teal, #5da8ae);
  margin: 1.3rem 0 .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(93,168,174,.18);
}

/* ══════════════════════════════════════════════════
   CAPTCHA — beautiful redesign
══════════════════════════════════════════════════ */
.auth-captcha-block {
  background: var(--bg-soft, #f2f8f9);
  border: 1.5px solid rgba(93,168,174,.20);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.auth-captcha-label {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text, #0d2224);
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.auth-captcha-label i { color: var(--teal, #5da8ae) }

.auth-captcha-display {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .8rem;
}
.auth-captcha-code {
  flex: 1;
  background: linear-gradient(135deg, var(--midnight,#071415) 0%, #0f2e32 100%);
  border-radius: 12px;
  padding: .85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 56px;
}
/* Noise texture overlay on captcha */
.auth-captcha-code::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .5;
}
/* Diagonal lines on captcha */
.auth-captcha-code::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(93,168,174,.06) 3px,
    rgba(93,168,174,.06) 4px
  );
  pointer-events: none;
}
.auth-captcha-text {
  font-family: var(--fd, 'Syne', sans-serif);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: .25em;
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow:
    1px 1px 0 rgba(93,168,174,.5),
    -1px -1px 0 rgba(255,165,0,.3);
  user-select: none;
  /* Slight character skew for CAPTCHA feel */
  transform: skewX(-2deg);
}

.auth-captcha-refresh {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal,#5da8ae), #3d8a90);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 14px rgba(93,168,174,.35);
}
.auth-captcha-refresh:hover {
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(93,168,174,.45);
  background: linear-gradient(135deg, var(--orange,#FFA500), #e8960a);
}

.auth-captcha-input-wrap {
  position: relative;
}
.auth-captcha-input-wrap input {
  width: 100%;
  padding: .72rem 1rem .72rem 2.5rem;
  font-family: var(--fd, 'Syne', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--text, #0d2224);
  background: #fff;
  border: 1.5px solid rgba(93,168,174,.25);
  border-radius: 12px;
  transition: all .25s;
  outline: none;
  text-transform: uppercase;
}
.auth-captcha-input-wrap input::placeholder {
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--text-soft, #7a9fa4);
  text-transform: none;
}
.auth-captcha-input-wrap input:focus {
  border-color: var(--teal, #5da8ae);
  box-shadow: 0 0 0 3px rgba(93,168,174,.15);
}
.auth-captcha-input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--teal, #5da8ae);
  font-size: .82rem;
  pointer-events: none;
  z-index: 1;
}

/* Status indicator */
.auth-captcha-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  margin-top: .4rem;
  color: var(--text-soft, #7a9fa4);
  min-height: 18px;
}
.auth-captcha-status.ok    { color: #22c55e }
.auth-captcha-status.error { color: #ef4444 }
.auth-captcha-status i { font-size: .7rem }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .auth-card { grid-template-columns: 1fr; max-width: 520px }
  .auth-side-panel { display: none }
}
@media (max-width: 560px) {
  .auth-section { padding: 1.5rem 1rem }
  .auth-row { grid-template-columns: 1fr }
  .auth-districts-grid { grid-template-columns: repeat(2, 1fr) }
  .auth-hero { padding: 3.5rem 1.2rem 3rem }
}

/* =====================================================
   PATCH — Side panel full height fix
   Card uses flex so side panel stretches naturally
===================================================== */
.auth-card {
  display: flex !important;
  grid-template-columns: unset;
  align-items: stretch;
}
.auth-form-panel {
  flex: 1;
  min-width: 0;
}
.auth-side-panel {
  width: 340px;
  flex-shrink: 0;
  position: relative !important; /* override sticky — let it stretch */
  top: unset !important;
  align-self: stretch !important;
  border-radius: 0 28px 28px 0;
  justify-content: center;
}

/* =====================================================
   CAPTCHA BUNDLE — restyle captcha_image + captcha_reload
===================================================== */

/* Wrapper that holds the bundle's generated elements */
.auth-captcha-img-wrap {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* The bundle image */
.auth-captcha-img-wrap img.captcha_image,
img.captcha_image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(93,168,174,.15);
  box-shadow: 0 4px 16px rgba(7,20,21,.18);
}

/* Row: image + reload button side by side */
.auth-captcha-img-row {
  display: flex;
  align-items: center;
  gap: .7rem;
}

/* Reload button from bundle */
a.captcha_reload,
.captcha_reload {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 52px !important;
  height: 52px !important;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal,#5da8ae), #3d8a90) !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-size: 0 !important;
  text-decoration: none !important;
  transition: all .35s cubic-bezier(.34,1.56,.64,1) !important;
  box-shadow: 0 4px 16px rgba(93,168,174,.40) !important;
  position: relative;
  overflow: hidden;
}
a.captcha_reload::before,
.captcha_reload::before {
  /* Inject an icon via pseudo-element since we can't add FA inside an <a> easily */
  content: '\f021'; /* fa-redo unicode */
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', FontAwesome;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  display: block;
  transition: transform .4s ease;
}
a.captcha_reload:hover,
.captcha_reload:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 24px rgba(93,168,174,.50) !important;
  background: linear-gradient(135deg, var(--orange,#FFA500), #e8960a) !important;
}
a.captcha_reload:hover::before,
.captcha_reload:hover::before {
  transform: rotate(180deg);
}

/* The text input rendered by the bundle */
.auth-captcha-img-wrap input[type="text"],
.auth-captcha-img-wrap input[type="tel"],
.auth-captcha-img-wrap input {
  width: 100%;
  padding: .78rem 1rem .78rem 2.8rem !important;
  font-family: var(--fd, 'Syne', sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: .18em !important;
  color: var(--text, #0d2224) !important;
  background: var(--bg-soft, #f2f8f9) !important;
  border: 1.5px solid rgba(93,168,174,.25) !important;
  border-radius: 12px !important;
  outline: none !important;
  transition: all .25s !important;
  text-transform: uppercase !important;
  -webkit-appearance: none;
  appearance: none;
}
.auth-captcha-img-wrap input:focus {
  border-color: var(--teal, #5da8ae) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(93,168,174,.15) !important;
}
.auth-captcha-img-wrap input::placeholder {
  font-weight: 400 !important;
  letter-spacing: .04em !important;
  color: var(--text-soft, #7a9fa4) !important;
  text-transform: none !important;
}

/* Input wrapper with icon overlay */
.auth-captcha-input-relative {
  position: relative;
}
.auth-captcha-input-relative .auth-captcha-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal, #5da8ae);
  font-size: .82rem;
  pointer-events: none;
  z-index: 2;
}

/* Captcha block label row */
.auth-captcha-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text, #0d2224);
  margin-bottom: .8rem;
}
.auth-captcha-label i { color: var(--teal, #5da8ae) }

/* Responsive */
@media (max-width: 960px) {
  .auth-card {
    flex-direction: column !important;
  }
  .auth-side-panel {
    display: none !important;
  }
  .auth-form-panel {
    width: 100%;
  }
}


/* ══ CAPTCHA JS-RESTRUCTURED DOM ══ */
.captcha-img-row {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.captcha-img-row img.captcha_image {
  flex: 1;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(93,168,174,.15);
  box-shadow: 0 4px 16px rgba(7,20,21,.18);
}
.captcha-img-row a.captcha_reload {
  width: 52px !important;
  height: 52px !important;
  flex-shrink: 0;
}

/* Input wrapper with icon */
.captcha-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.captcha-input-icon {
  position: absolute;
  left: 14px;
  color: var(--teal, #5da8ae);
  font-size: .82rem;
  pointer-events: none;
  z-index: 2;
}
.captcha-input-wrap input {
  padding-left: 2.6rem !important;
}