/* ============================================================
   Firmland auth pages — modern split-panel (login / register /
   forgot / set-password / 2FA). Self-contained: no AdminBSB,
   no jQuery. Brand palette mirrors firmland.in.
   ============================================================ */

:root {
  --fl-ink:        #0F1115;
  --fl-ink-soft:   #1c1f26;
  --fl-accent:     #F4501E;
  --fl-accent-700: #d8430f;
  --fl-bg:         #FDFCFB;
  --fl-surface:    #ffffff;
  --fl-border:     #e6e3df;
  --fl-text:       #0F1115;
  --fl-muted:      #5B6472;
  --fl-label:      #374151;

  /* Brand panel (live-tweakable via the ?picker dev tool) */
  --fl-panel-1:    #2c1d16;   /* gradient top    */
  --fl-panel-2:    #1d1410;   /* gradient bottom */
  --fl-glow:       0.22;      /* ember glow alpha */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.fl-auth-body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fl-text);
  background: var(--fl-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Brand panel (left) ---------- */
.fl-auth__brand {
  background:
    radial-gradient(1100px 520px at -8% -12%, rgba(244,80,30,var(--fl-glow)), transparent 58%),
    linear-gradient(160deg, var(--fl-panel-1) 0%, var(--fl-panel-2) 100%);
  color: #fff;
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.fl-brand-logo { display: flex; align-items: center; gap: 13px; }
.fl-brand-logo .name {
  font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -.01em;
}

.fl-brand-mid { max-width: 420px; }
.fl-tag {
  font-size: 32px; font-weight: 700; line-height: 1.22;
  letter-spacing: -.025em; margin: 0 0 18px;
}
.fl-tag .accent { color: var(--fl-accent); }
.fl-lede { color: #c3b4a8; font-size: 16px; line-height: 1.6; margin: 0; max-width: 380px; }

.fl-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.fl-points li { display: flex; align-items: center; gap: 12px; color: #d4c6ba; font-size: 15px; }
.fl-points .tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(244,80,30,.16); color: var(--fl-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.fl-points .tick svg { width: 13px; height: 13px; }

.fl-brand-foot { color: #8a7869; font-size: 13px; }

/* ---------- Form panel (right) ---------- */
.fl-auth__panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--fl-bg);
}
.fl-card { width: 100%; max-width: 408px; }

.fl-form-logo { display: none; align-items: center; gap: 11px; margin-bottom: 28px; }
.fl-form-logo .name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

.fl-card h1 { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 7px; }
.fl-sub { color: var(--fl-muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 26px; }

/* ---------- Fields ---------- */
.fl-field { margin-bottom: 17px; }
.fl-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--fl-label); margin-bottom: 7px;
}
.fl-input-wrap { position: relative; }
.fl-input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--fl-border); border-radius: 11px;
  background: var(--fl-surface); color: var(--fl-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fl-input::placeholder { color: #9aa1ac; }
.fl-input:focus {
  outline: none; border-color: var(--fl-accent);
  box-shadow: 0 0 0 3px rgba(244,80,30,.15);
}
.fl-input--otp {
  text-align: center; font-size: 26px; font-weight: 700;
  letter-spacing: 12px; padding-left: 12px;
}
.fl-pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #9aa1ac;
  padding: 6px; display: inline-flex; border-radius: 8px;
}
.fl-pw-toggle:hover { color: var(--fl-muted); background: #f3f1ee; }
.fl-pw-toggle svg { width: 19px; height: 19px; }

/* ---------- Checkbox row ---------- */
.fl-check { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 20px; }
.fl-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--fl-accent); flex: 0 0 auto; }
.fl-check label { font-size: 13.5px; color: var(--fl-muted); line-height: 1.5; }
.fl-row-between { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px; }

/* ---------- Button ---------- */
.fl-btn {
  width: 100%; padding: 13px 16px; border: none; border-radius: 11px;
  background: var(--fl-accent); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s ease, transform .05s ease;
  font-family: inherit;
}
.fl-btn:hover { background: var(--fl-accent-700); }
.fl-btn:active { transform: translateY(1px); }

/* ---------- Links / switch ---------- */
.fl-link { color: var(--fl-accent); text-decoration: none; font-weight: 600; cursor: pointer; background: none; border: none; font: inherit; padding: 0; }
.fl-link:hover { text-decoration: underline; }
.fl-link--muted { color: var(--fl-muted); font-weight: 500; }
.fl-switch { margin-top: 22px; font-size: 14px; color: var(--fl-muted); text-align: center; }

/* ---------- Alerts ---------- */
.fl-alert { padding: 11px 14px; border-radius: 11px; font-size: 13.5px; line-height: 1.5; margin-bottom: 18px; }
.fl-alert--error { background: #fdeceb; color: #b42318; border: 1px solid #f7d3cf; }
.fl-alert--info  { background: #eff4ff; color: #1d4ed8; border: 1px solid #d6e0ff; }
.fl-alert--ok    { background: #ecfdf3; color: #067647; border: 1px solid #bbf7d0; }

/* ---------- Mode visibility ---------- */
.fl-mode { display: none; }
.fl-mode.is-active { display: block; }

.fl-hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .fl-auth { grid-template-columns: 1fr; }
  .fl-auth__brand { display: none; }
  .fl-form-logo { display: flex; }
  .fl-auth__panel { padding: 32px 20px; }
}
