/* ════════════════════════════════════════
   OYASELL — AUTH (login / signup)
   Split-screen: dark form panel + testimonial photo
   ════════════════════════════════════════ */

/* Reset — keep widths predictable and kill any sideways scroll */
.auth-page *,
.auth-page *::before,
.auth-page *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.auth-page {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0b;
  color: #e8e8ea;
  min-height: 100vh;
}

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

/* ── LEFT: form panel ── */
.auth-form-side {
  display: flex;
  flex-direction: column;
  padding: 40px clamp(28px, 5vw, 72px);
  background: #0a0a0b;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
}

.auth-brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c3a2f;
  border: 1px solid #2c5446;
}

.auth-brand .mark svg { width: 16px; height: 16px; stroke: #b08d4f; stroke-width: 1.8; fill: none; }

/* ── BACK TO HOME ── */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 8px 14px 8px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2e;
  color: rgba(232,232,234,0.75);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
}

.auth-back:hover {
  background: rgba(255,255,255,0.08);
  border-color: #3a3a40;
  color: #fff;
}

.auth-back:active { transform: scale(0.98); }

.auth-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.18s;
}

.auth-back:hover svg { transform: translateX(-2px); }

.auth-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 0;
}

.auth-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #fff;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: rgba(232,232,234,0.5);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* social buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: #161618;
  border: 1px solid #2a2a2e;
  color: #ececef;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}

.social-btn:hover { background: #1d1d20; border-color: #3a3a40; }
.social-btn:active { transform: scale(0.99); }
.social-btn svg { width: 17px; height: 17px; }

/* divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: rgba(232,232,234,0.35);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #232327;
}

/* fields */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(232,232,234,0.75);
  margin-bottom: 8px;
}

.input-wrap { position: relative; }

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  background: #111113;
  border: 1px solid #2a2a2e;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.field input::placeholder { color: rgba(232,232,234,0.3); }

.field input:focus {
  outline: none;
  border-color: #b08d4f;
  background: #141416;
  box-shadow: 0 0 0 3px rgba(176,141,79,0.16);
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  color: rgba(232,232,234,0.4);
  transition: color 0.18s;
}

.toggle-pass:hover { color: rgba(232,232,234,0.8); }
.toggle-pass svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 12.5px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(232,232,234,0.65);
  cursor: pointer;
  user-select: none;
}

.remember input { accent-color: #b08d4f; width: 15px; height: 15px; }

.link-gold {
  color: #c79f5d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}

.link-gold:hover { color: #d8b673; text-decoration: underline; }

/* submit — on-brand green */
.auth-submit {
  width: 100%;
  padding: 13px 16px;
  border-radius: 9px;
  background: #1c3a2f;
  border: 1px solid #142b22;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28,58,47,0.4);
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}

.auth-submit:hover { background: #234738; box-shadow: 0 6px 20px rgba(28,58,47,0.5); }
.auth-submit:active { transform: scale(0.99); }

.auth-alt {
  text-align: center;
  font-size: 13px;
  color: rgba(232,232,234,0.55);
  margin-top: 22px;
}

.auth-terms {
  text-align: center;
  font-size: 11.5px;
  color: rgba(232,232,234,0.35);
  line-height: 1.6;
  margin-top: 20px;
}

.auth-terms a { color: rgba(232,232,234,0.6); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

.auth-footnote {
  font-size: 11.5px;
  color: rgba(232,232,234,0.3);
}

/* ── RIGHT: testimonial photo ── */
.auth-visual-side {
  position: relative;
  overflow: hidden;
  background: #1c3a2f;
}

.auth-visual-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0.35) 55%, rgba(10,10,11,0.85) 100%);
}

.auth-quote {
  position: absolute;
  left: clamp(28px, 4vw, 56px);
  right: clamp(28px, 4vw, 56px);
  bottom: clamp(40px, 6vw, 64px);
  z-index: 2;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 22px;
}

.auth-badge .badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #b08d4f; }

.auth-quote blockquote {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 22px;
}

.auth-author { font-size: 15px; font-weight: 700; color: #fff; }
.auth-role { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 2px; }

.auth-dots { display: flex; gap: 7px; margin-top: 22px; }
.auth-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.auth-dots span.on { width: 22px; border-radius: 100px; background: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }

  /* Image becomes a faint full-screen backdrop behind the form */
  .auth-visual-side {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.07;
  }
  .auth-visual-side .auth-visual-overlay { display: none; }

  /* Let the backdrop peek through the form panel */
  .auth-form-side {
    position: relative;
    z-index: 1;
    background: transparent;
    min-height: 100vh;
  }
}

/* ── Flash messages ── */
.auth-flashes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-flash {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.auth-flash.error {
  color: #ffb4ad;
  background: rgba(196, 87, 79, 0.12);
  border-color: rgba(196, 87, 79, 0.35);
}

.auth-flash.info,
.auth-flash.success {
  color: #a9e0c4;
  background: rgba(40, 140, 90, 0.12);
  border-color: rgba(40, 140, 90, 0.35);
}

/* ── OTP code boxes ── */
.otp-form { margin-top: 4px; }

.otp-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.otp-box {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  max-width: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: #111113;
  border: 1px solid #2a2a2e;
  border-radius: 11px;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.otp-box:focus {
  outline: none;
  border-color: #b08d4f;
  background: #141416;
  box-shadow: 0 0 0 3px rgba(176, 141, 79, 0.16);
}

.otp-box.filled { border-color: #3a3a40; }

/* link-styled button (e.g. resend) */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 420px) {
  .auth-form-side { padding: 28px 22px; }
  .otp-row { gap: 7px; }
}
