/* =========================================================
   FilipinoToDate — Login / Register pages
   Nag-agad ni sa design tokens sa style.css (:root)
   ========================================================= */

body.auth-body {
  min-height: 100vh;
  background: var(--bg-tint);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ---------- Left brand panel ---------- */
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--grad);
}
.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}
.auth-aside::before { width: 420px; height: 420px; top: -140px; right: -130px; }
.auth-aside::after  { width: 300px; height: 300px; bottom: -110px; left: -90px; }

.auth-aside .logo-text { color: #fff; }
.auth-aside .logo-text em { color: #FFE1F0; }
.auth-aside .logo-mark { background: rgba(255, 255, 255, .18); box-shadow: none; }

.auth-aside-body {
  position: relative;
  z-index: 1;
  margin: auto 0;
  max-width: 460px;
}
.auth-aside-body h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 14px;
}
.auth-aside-body p {
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
}

.auth-points {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}
.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .95);
}
.auth-points svg {
  width: 22px; height: 22px;
  flex: none;
  margin-top: 2px;
  fill: #fff;
  opacity: .9;
}

.auth-aside-foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.auth-aside-foot div strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.auth-aside-foot div span {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
}

/* ---------- Right form panel ---------- */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 460px;
}
.auth-card.is-wide { max-width: 560px; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.auth-back:hover { color: var(--ink); }
.auth-back svg { width: 16px; height: 16px; fill: currentColor; }

.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 8px; }
.auth-head p { color: var(--muted); }

.auth-mobile-logo { display: none; margin-bottom: 22px; }

/* ---------- Form bits (extends .field from style.css) ---------- */
.auth-form .field { margin-bottom: 16px; }
.auth-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form .row-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }

.auth-form label,
.auth-form legend {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.auth-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236E6580'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 34px;
}
.auth-form input:focus,
.auth-form select:focus {
  outline: 0;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(225, 29, 116, .12);
}
.auth-form .has-error input,
.auth-form .has-error select { border-color: #DC2626; }

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #DC2626;
}
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Password show/hide */
.input-affix { position: relative; }
.input-affix input { padding-right: 68px; }
.affix-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.affix-btn:hover { background: var(--brand-50); }

/* Segmented man / woman */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  margin: 0;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .16s ease;
}
.segmented label:hover { border-color: var(--brand-500); color: var(--ink); }
.segmented input:checked + label {
  border-color: var(--brand-500);
  background: var(--brand-50);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(225, 29, 116, .1);
}
.segmented input:focus-visible + label { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 2px; }

/* Checkbox row */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-500); flex: none; }
.check label { margin: 0; font-weight: 500; font-size: 14px; color: var(--ink-soft); }
.check a { color: var(--ink); font-weight: 600; text-decoration: underline; }

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.auth-row-between .check { margin: 0; }
.link-muted { font-size: 14px; font-weight: 600; color: var(--ink); }
.link-muted:hover { text-decoration: underline; }

/* Alerts */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: currentColor; }
.alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-ok    { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }

/* Ang style.css naghimo sa .divider nga flex ug naay ::after nga flex:1.
   Kinahanglan i-reset — kon dili, mabalhin ang "or" sa wala. */
.divider {
  display: block;
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.divider::after { content: none; }
.divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}
.divider span {
  position: relative;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.auth-alt {
  margin-top: 22px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.auth-alt a { font-weight: 700; color: var(--ink); }
.auth-alt a:hover { text-decoration: underline; }

.auth-legal {
  margin-top: 26px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ---------- reCAPTCHA (signup, live site ra) ---------- */
/* Ang lugar sa v2 checkbox. Ang v3 walay box — ang badge sa Google naa sa ubos-tuo. */
.captcha-field:has(.g-recaptcha) { min-height: 78px; }

/* ---------- Responsive ---------- */
@media (max-width: 380px) {
  /* 304px ang gilapdon sa Google box — gamyan aron dili moawas sa gamay nga cellphone. */
  .captcha-field .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
  .captcha-field { min-height: 70px; }
}
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-logo { display: block; }
  .auth-main { align-items: flex-start; padding-top: 34px; }
}
@media (max-width: 520px) {
  .auth-form .row-2,
  .auth-form .row-3 { grid-template-columns: 1fr; }
  .auth-main { padding-inline: 18px; }
}

/* ---------- Nasod / probinsya / city (lib/views/location-fields.php) ---------- */
/* Ang .row-2 / .field naay kaugalingong display — kinahanglan ni para motago. */
.loc-fields [hidden] { display: none !important; }
