/* =====================================================================
   auth.css — split-screen auth pages (login / forgot password)
   Styled after asasa.com: form panel left, rounded image slider right.
   --pri (brand colour) is set inline per page from Settings.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0b0b0f; color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

.auth-wrap { display: flex; min-height: 100vh; }

/* ---- Left: form ---- */
.auth-left { flex: 1; display: flex; flex-direction: column; padding: 34px 48px; min-width: 0; }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand img { height: 40px; width: 40px; border-radius: 10px; object-fit: contain; }
.auth-brand .nm { font-size: 22px; font-weight: 800; color: #ffffff; letter-spacing: -.3px; }

.auth-box { width: 100%; max-width: 420px; margin: auto 0; padding: 24px 0; }
.auth-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 8px; color: #f5f5f7; }
.auth-box .sub { color: #9aa0aa; margin: 0 0 26px; font-size: 15px; }

.auth-back { display: inline-flex; align-items: center; gap: 7px; color: #9aa0aa; text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.auth-back:hover { color: var(--pri); }

.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: 13px; font-weight: 600; color: #cbd2dc; margin-bottom: 6px; }
.fld input {
  width: 100%; padding: 12px 14px; border: 1px solid #2a2a35; border-radius: 10px; font-size: 14px;
  outline: none; background: #16161d; color: #f5f5f7; transition: border-color .15s ease, box-shadow .15s ease;
}
.fld input::placeholder { color: #6b7280; }
.fld input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 22%, transparent); }
/* Keep autofilled fields dark (browsers force white otherwise) */
.fld input:-webkit-autofill,
.fld input:-webkit-autofill:hover,
.fld input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f5f7;
  -webkit-box-shadow: 0 0 0 1000px #16161d inset;
  box-shadow: 0 0 0 1000px #16161d inset;
  caret-color: #f5f5f7;
  border: 1px solid #2a2a35;
}
.fld input:-webkit-autofill:focus { border-color: var(--pri); }

.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; font-size: 13.5px; }
.auth-row .rm { display: flex; gap: 7px; align-items: center; color: #9aa0aa; font-weight: 500; }
.auth-row a { color: var(--pri); font-weight: 600; text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }

.btn-auth {
  width: 100%; padding: 13px; border: none; border-radius: 10px; background: var(--pri); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: filter .15s ease;
}
.btn-auth:hover { filter: brightness(.93); }

.auth-alt { text-align: center; margin-top: 22px; font-size: 14px; color: #9aa0aa; }
.auth-alt a { color: var(--pri); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

.auth-err { background: rgba(255,82,82,.12); color: #ff8a8a; border: 1px solid rgba(255,82,82,.32); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; }
.auth-ok  { background: rgba(61,214,140,.12); color: #6fe3a8; border: 1px solid rgba(61,214,140,.32); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; }

/* ---- Right: image slider ---- */
.auth-right {
  flex: 1.1; margin: 20px; border-radius: 24px; overflow: hidden; position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}
.auth-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; color: #fff;
}
.auth-slide.active { opacity: 1; }
.auth-slide .tag {
  align-self: flex-start; background: var(--pri); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; margin-bottom: 16px;
}
.auth-slide .ttl { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 0 0 12px; }
.auth-slide .sb { font-size: 17px; opacity: .92; font-weight: 400; max-width: 520px; margin: 0; line-height: 1.5; }

.auth-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.auth-dot { width: 10px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.55); cursor: pointer; transition: all .3s ease; border: 0; padding: 0; }
.auth-dot.active { width: 28px; background: var(--pri); }

@media (max-width: 860px) {
  .auth-right { display: none; }
  .auth-left { padding: 28px 22px; }
  .auth-box { margin: 28px 0; }
}
