/* ============================================================
   Auth pages — split layout (Bootstrap 5 + Font Awesome)
   Brand: RepairXLab orange on deep navy
   ============================================================ */
:root {
  --accent: #ff6b00;
  --accent-2: #ff8f3c;
  --bg: #07070f;
  --panel: #0d0d1c;
  --card: #14142a;
  --card2: #1a1a33;
  --border: #26264a;
  --text: #e8e8f5;
  --muted: #9a9ab8;
  --ok: #34d399;
  --danger: #f87171;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* v1.42 — Manrope as the auth base font (body has no class, .auth-body is a wrapper) */
html, body { font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* ============================================================
   v1.31 — PAGE LOADER (auth pages)
   ============================================================ */
.auth-loader {
  position: fixed; inset: 0; z-index: 99999;
  /* v1.36: frosted-glass (halka tint + blur) */
  background: rgba(10, 10, 18, .5);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: grid; place-items: center;
  transition: opacity .4s ease, visibility .4s ease;
}
/* v1.37 FINAL (production): loader turant dikhta hai, load hote hi hide (JS) */
.auth-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
/* v1.37 — loader: premium dual-arc spinner (gradient arc + counter ring + pulsing core + halo ripple) */
.sl-inner { display: flex; align-items: center; justify-content: center; }
.sl-ring { position: relative; width: 60px; height: 60px; display: grid; place-items: center; }
.sl-arc {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,107,0,0) 0deg, rgba(255,107,0,0) 190deg, rgba(255,107,0,.22) 260deg, var(--accent) 340deg, #ffd9b8 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  animation: slSpin 2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255,107,0,.6));
}
.sl-arc.sl-arc2 {
  inset: 10px;
  background: conic-gradient(from 180deg, rgba(255,157,77,0) 0deg, rgba(255,157,77,0) 235deg, rgba(255,157,77,.55) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  animation: slSpinRev 1.4s linear infinite;
  filter: none;
}
.sl-core {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9d4d);
  box-shadow: 0 0 12px rgba(255,107,0,.8);
  animation: slCorePulse 1.6s ease-in-out infinite;
}
.sl-halo {
  position: absolute; inset: 0; margin: auto;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,107,0,.55);
  animation: slHalo 2s ease-out infinite;
}
@keyframes slSpin { to { transform: rotate(360deg); } }
@keyframes slSpinRev { to { transform: rotate(-360deg); } }
@keyframes slCorePulse {
  0%, 100% { transform: scale(.75); opacity: .7; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes slHalo {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(4.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-arc, .sl-core, .sl-halo { animation: none; }
  .sl-halo { display: none; }
}

.auth-body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Left brand panel ---------- */
.auth-brand {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(255,107,0,.20), transparent 62%),
    radial-gradient(700px 520px at 88% 88%, rgba(255,107,0,.10), transparent 60%),
    linear-gradient(155deg, #0b0b1a, #14142c 62%, #0d0d1e);
  padding: 44px 52px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--border);
}
.auth-brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 78%);
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-logo { display: flex; align-items: center; gap: 13px; font-weight: 800; font-size: 1.16rem; letter-spacing: -.01em; }
.auth-logo .mark {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 44px;
  background: linear-gradient(135deg, var(--accent), #ff9d4d);
  display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(255,107,0,.36);
}
.auth-logo small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.auth-hero h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.65rem); font-weight: 800; line-height: 1.16;
  letter-spacing: -.028em; margin-bottom: 16px;
}
.auth-hero h2 em { font-style: normal; color: var(--accent); }
.auth-hero p { color: var(--muted); font-size: .97rem; line-height: 1.72; max-width: 460px; margin-bottom: 30px; }

.auth-points { display: flex; flex-direction: column; gap: 15px; }
.auth-point { display: flex; gap: 13px; align-items: flex-start; }
.auth-point .pico {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  background: rgba(255,107,0,.12); color: var(--accent);
  display: grid; place-items: center; font-size: .92rem;
  border: 1px solid rgba(255,107,0,.2);
}
.auth-point b { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 2px; }
.auth-point small { color: var(--muted); font-size: .81rem; line-height: 1.55; display: block; }

.auth-foot { color: #63638a; font-size: .78rem; display: flex; align-items: center; gap: 8px; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--accent); }

/* ---------- Right form panel ---------- */
.auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px; background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 34px;
  box-shadow: 0 22px 60px rgba(0,0,0,.5);
}
.auth-card-head { margin-bottom: 26px; }
.auth-card-head .chip-top {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(255,107,0,.1);
  border: 1px solid rgba(255,107,0,.22);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 15px;
}
.auth-card-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 7px; }
.auth-card-head p { color: var(--muted); font-size: .89rem; margin: 0; }

/* Fields */
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 7px;
}
.auth-field .ctrl {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 11px; font-size: .93rem; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-field .ctrl::placeholder { color: #5f5f83; }
.auth-field .ctrl:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,0,.13); }
.auth-field .has-icon { position: relative; }
.auth-field .has-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .92rem; pointer-events: none; }
.auth-field .has-icon .ctrl { padding-left: 40px; }
.auth-field .has-eye { position: relative; }
.auth-field .has-eye .ctrl { padding-right: 44px; }
.auth-field .eye-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .15s;
}
.auth-field .eye-toggle:hover { color: var(--accent); background: rgba(255,107,0,.1); }
.auth-field .hint { font-size: .77rem; color: var(--muted); margin-top: 6px; display: block; }
.auth-field .hint a { color: var(--accent); font-weight: 600; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.auth-row a { font-size: .84rem; font-weight: 600; color: var(--accent); }
.auth-row a:hover { color: var(--accent-2); }

.auth-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg, var(--accent), #ff8f3c);
  color: #fff; border: 0; padding: 13px 20px; border-radius: 12px;
  font-size: .94rem; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 10px 26px rgba(255,107,0,.3); transition: transform .15s, filter .15s, box-shadow .15s;
}
.auth-btn:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,107,0,.36); color: #fff; }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: .75; cursor: not-allowed; transform: none; }
.auth-btn .spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  animation: authSpin .7s linear infinite; display: inline-block;
}
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-btn.loading { color: transparent !important; position: relative; }
.auth-btn.loading .spinner { position: absolute; }

.auth-alt { text-align: center; margin-top: 20px; font-size: .87rem; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 700; }
.auth-alt a:hover { color: var(--accent-2); }

.auth-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: 12px; font-size: .87rem; margin-bottom: 20px;
}
.auth-alert i { margin-top: 2px; }
.auth-alert.error { background: rgba(239,68,68,.1); color: #fca5a5; border: 1px solid rgba(239,68,68,.28); }
.auth-alert.ok { background: rgba(16,185,129,.1); color: #6ee7b7; border: 1px solid rgba(16,185,129,.28); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #5f5f83; font-size: .76rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-social button {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--card2); border: 1px solid var(--border); color: var(--text);
  padding: 10px; border-radius: 10px; font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.auth-social button:hover { border-color: var(--accent); color: var(--accent); }

/* Password strength */
.pw-meter { height: 4px; border-radius: 4px; background: var(--card2); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }
.pw-text { font-size: .74rem; color: var(--muted); margin-top: 5px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-side { padding: 26px 18px; }
  .auth-card { padding: 28px 22px; border-radius: 18px; }
}
@media (max-width: 420px) {
  .auth-social { grid-template-columns: 1fr; }
}
