/* SFQ UI – Bright, friendly, mobile-first (Auth + Admin compatible) */

:root{
  /* Backgrounds */
  --bg: linear-gradient(180deg, #f7fbf9 0%, #eef6f2 100%);
  --card: #ffffff;
  --border: rgba(0,0,0,.08);
  --field: #f6faf8;
  --field-border: rgba(0,0,0,.12);

  /* Text */
  --text:#102a22;
  --muted:#5f7d73;
  --link:#2a8f6a;

  /* Accent */
  --accent:#6cff9f;
  --accent-soft: rgba(108,255,159,.18);
  --accent-blue:#4fb6ff;

  /* Buttons */
  --btn-bg: linear-gradient(135deg, #6cff9f, #4fb6ff);
  --btn-fg:#042017;
  --btn-secondary-bg:#ffffff;
  --btn-secondary-fg:#102a22;
  --btn-secondary-border: rgba(0,0,0,.12);

  /* Feedback */
  --err:#d64545;
  --warn:#b86a00;
  --ok:#1b8a5a;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

/* ---------- Shared layout (Auth + Admin) ---------- */
.sfq-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

.sfq-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
}

.sfq-card{
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow:
    0 20px 40px rgba(0,0,0,.06),
    0 4px 10px rgba(0,0,0,.04);
}

.sfq-card-wide{ max-width: 920px; }

/* ---------- Typography ---------- */
.sfq-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent-soft);
  color: #116b47;
}

.sfq-h1{
  margin: 14px 0 6px;
  font-size: 24px;
  line-height: 1.25;
}

.sfq-h2{
  margin: 16px 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.sfq-p{
  margin:0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Feedback ---------- */
.sfq-err{
  margin: 10px 0 0;
  color: var(--err);
  font-weight: 700;
}
.sfq-ok{ color: var(--ok); font-weight: 700; }
.sfq-warn{ color: var(--warn); font-weight: 700; }

/* ---------- Forms ---------- */
.sfq-form{ margin-top: 14px; }

.sfq-label{
  display:block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.sfq-input{
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  outline: none;
}

.sfq-input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background:#ffffff;
}

.sfq-row{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  align-items:center;
  flex-wrap:wrap;
}

.sfq-divider{
  height:1px;
  background: rgba(0,0,0,.08);
  margin: 18px 0;
}

.sfq-footnote{
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Buttons (Admin-friendly, calmer) ---------- */
.sfq-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  /* tighter + more deliberate */
  padding: 11px 16px;
  border-radius: 10px;              /* less bubble */

  border: none;
  background: var(--btn-bg);
  color: var(--btn-fg);

  cursor:pointer;
  font-weight: 800;                 /* slightly reduced */
  letter-spacing:.15px;
  min-height: 42px;

  /* calmer elevation */
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  text-decoration:none;

  transition:
    filter .15s ease,
    box-shadow .15s ease,
    transform .1s ease;
}

.sfq-btn:hover{
  filter: brightness(1.02);         /* subtler */
}

.sfq-btn:active{
  transform: none;                  /* no bounce */
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}

/* Secondary buttons stay quieter */
.sfq-btn-secondary{
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border: 1px solid var(--btn-secondary-border);
  box-shadow: none;
}

.sfq-btn-secondary:hover{
  background: rgba(0,0,0,.02);
}

.sfq-btn-secondary:active{
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}

/* Links untouched */
.sfq-small{
  font-size: 13px;
  color: var(--muted);
}

.sfq-link{
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}
.sfq-link:hover{ text-decoration: underline; }

/* Mobile tweaks */
@media (max-width: 420px){
  .sfq-btn{ width: 100%; }
  .sfq-row{ gap: 14px; }
  .sfq-wrap{ padding: 16px; }
}