/* ============================================================
   OXO.GE — Auth pages redesign (split-screen, responsive)
   login / register / forgot_password / reset_password / reset_phone
   Brand: #3b82f6. Loaded after style.css → overrides auth rules.
   ============================================================ */

/* ---- Split container ---- */
.oxo-auth {
  display: flex;
  min-height: calc(100vh - 64px);
  width: 100%;
  background: var(--white);
}

/* ---- Brand panel (left) ---- */
.oxo-auth-brand {
  flex: 0 0 44%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px;
  background: linear-gradient(150deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%);
  color: #fff;
}
.oxo-auth-brand::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.oxo-auth-brand::before {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.oxo-auth-brand-logo {
  font-family: var(--font-heading, var(--font-geo));
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.oxo-auth-brand-logo span { color: #bfdbfe; }
.oxo-auth-brand-tagline {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  max-width: 360px;
}
.oxo-auth-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}
.oxo-auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: #eff6ff;
}
.oxo-auth-brand-features li i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 17px;
  color: #fff;
}
.oxo-auth-brand-foot {
  margin-top: 36px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

/* ---- Form panel (right) ---- */
.oxo-auth-form {
  flex: 1 1 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.oxo-auth-form .auth-wrap,
.oxo-auth-form .auth-inner {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  overflow: visible;
}

/* ---- Header icon + title (refined) ---- */
.oxo-auth-form .auth-icon {
  padding-top: 0;
  margin-bottom: 4px;
  text-align: center;
}
.oxo-auth-form .auth-icon i {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.18);
  -webkit-text-fill-color: var(--primary);
}
.oxo-auth-form .auth-title {
  font-size: 23px;
  letter-spacing: 0.3px;
  text-transform: none;
  padding: 14px 0 6px;
  font-weight: 800;
}
.oxo-auth-subtitle {
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-500);
  margin: 0 0 22px;
  line-height: 1.5;
}

/* ---- Inputs (bigger, comfier) ---- */
.oxo-auth-form .form-group { margin-bottom: 15px; }
.oxo-auth-form .form-control {
  padding: 13px 15px;
  font-size: 15px;
  border-radius: 12px;
  border-width: 1.5px;
}
.oxo-auth-form .form-control:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.oxo-auth-form .form-group label {
  font-size: 12.5px;
  margin-bottom: 7px;
}

/* ---- Primary button (brand gradient, larger) ---- */
.oxo-auth-form .btn-primary {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 12px;
  margin-top: 4px;
}

/* ---- YouTube / OAuth button ---- */
.oxo-auth-form .btn-youtube-login {
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13.5px;
}

/* ---- Divider ---- */
.oxo-auth-form .auth-divider { margin: 18px 0; }

/* ---- Captcha (tighter) ---- */
.oxo-auth-form .oxo-captcha {
  padding: 13px;
  border-radius: 12px;
  border-width: 1.5px;
}
.oxo-auth-form .oxo-captcha-img { height: 46px; }

/* ---- Reset links row ---- */
.oxo-auth-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 16px;
}
.oxo-auth-form .forgot-link {
  margin-bottom: 0;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

/* ---- Footer ---- */
.oxo-auth-form .auth-footer {
  border-top: 1px solid var(--gray-100);
  margin-top: 18px;
  padding: 16px 0 0;
}

/* ---- OTP code input (reset_phone step 2) ---- */
.oxo-auth-form input#code {
  letter-spacing: 8px !important;
  font-size: 22px !important;
  font-weight: 700;
  text-align: center;
}

/* ============================================================
   RESPONSIVE — tablet & mobile
   ============================================================ */
@media (max-width: 880px) {
  .oxo-auth { flex-direction: column; min-height: 0; }

  .oxo-auth-brand {
    flex: none;
    padding: 32px 24px 28px;
    text-align: center;
    align-items: center;
  }
  .oxo-auth-brand-tagline {
    font-size: 16px;
    margin-bottom: 0;
    max-width: 100%;
  }
  /* mobile: hide feature list + footer, keep logo + tagline compact */
  .oxo-auth-brand-features,
  .oxo-auth-brand-foot { display: none; }
  .oxo-auth-brand-logo { font-size: 26px; margin-bottom: 6px; }
  .oxo-auth-brand::after { right: -90px; top: -90px; width: 220px; height: 220px; }
  .oxo-auth-brand::before { display: none; }

  .oxo-auth-form { padding: 28px 18px 36px; }
}

@media (max-width: 420px) {
  .oxo-auth-brand { padding: 26px 18px 22px; }
  .oxo-auth-brand-logo { font-size: 23px; }
  .oxo-auth-brand-tagline { font-size: 14.5px; }
  .oxo-auth-form { padding: 24px 14px 32px; }
  .oxo-auth-form .auth-title { font-size: 21px; }
  .oxo-auth-form .form-control { font-size: 16px; } /* ≥16px stops iOS zoom */
  .oxo-auth-form .oxo-captcha-row { gap: 8px; }
}

/* ============================================================
   REGISTER variant — taller content, wider form, sticky brand
   Use <div class="oxo-auth oxo-auth--reg">
   ============================================================ */
.oxo-auth--reg .oxo-auth-brand {
  justify-content: flex-start;
  padding-top: 68px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
}
.oxo-auth--reg .oxo-auth-form {
  align-items: flex-start;
  padding-top: 44px;
}
.oxo-auth--reg .oxo-auth-form .auth-wrap,
.oxo-auth--reg .oxo-auth-form .auth-inner {
  max-width: 600px;
}
/* terms-wrap content sits inside the form panel — strip its own framing */
.oxo-auth--reg .terms-wrap {
  max-width: 600px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
}
@media (max-width: 880px) {
  .oxo-auth--reg .oxo-auth-brand {
    position: static;
    max-height: none;
    padding-top: 32px;
  }
  .oxo-auth--reg .oxo-auth-form { align-items: stretch; padding-top: 28px; }
}

/* ============================================================
   RESET variant — forgot_password / reset_password / reset_phone
   Right (form) side: a finished card, clear header, step bar.
   Use <div class="oxo-auth oxo-auth--reset">
   ============================================================ */
.oxo-auth--reset .oxo-auth-form { padding: 48px 28px; }

.oxo-auth--reset .oxo-auth-form .auth-wrap {
  max-width: 432px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  padding: 38px 34px 30px;
  display: flex;
  flex-direction: column;
}

/* header: icon + title cleanly stacked, no overlap */
.oxo-auth--reset .auth-icon {
  padding: 0;
  margin: 0 auto 14px;
  line-height: 1;
}
.oxo-auth--reset .auth-icon i {
  width: 64px;
  height: 64px;
  border-radius: 19px;
  font-size: 27px;
}
.oxo-auth--reset .auth-title {
  padding: 0;
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
}

/* lead/help paragraph → soft info box */
.oxo-auth--reset .auth-wrap > p {
  background: #f0f6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px !important;
  color: #1e40af !important;
  line-height: 1.55;
  margin: 6px 0 20px !important;
  text-align: left;
}
.oxo-auth--reset .auth-wrap > p i { color: #3b82f6; }

/* back / "didn't get code" links — pill style */
.oxo-auth--reset .auth-wrap > div[style*="text-align"] a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-600) !important;
  font-size: 12.5px !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.oxo-auth--reset .auth-wrap > div[style*="text-align"] a:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: #eff6ff;
}

/* ---- Step indicator (reset_phone: ნომერი → კოდი) ---- */
.oxo-reset-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 22px;
}
.oxo-reset-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
}
.oxo-reset-step b {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.oxo-reset-step.active { color: var(--primary); }
.oxo-reset-step.active b { background: var(--primary); color: #fff; }
.oxo-reset-step.done b { background: #dcfce7; color: #16a34a; }
.oxo-reset-steps .oxo-reset-line {
  width: 38px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 10px;
}

@media (max-width: 880px) {
  .oxo-auth--reset .oxo-auth-form { padding: 26px 16px 36px; }
  .oxo-auth--reset .oxo-auth-form .auth-wrap {
    padding: 28px 22px 24px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
  }
}
