/* ============================================================
   CGFIEC — Sistema de Gestão de Ficha Cadastral
   Design: Institucional refinado, tipografia serif + sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --navy:       #1a3c5e;
  --navy-dark:  #112844;
  --navy-light: #2e5f8a;
  --teal:       #0e7490;
  --teal-light: #e0f2fe;
  --gold:       #b88a2e;
  --gold-light: #fef9ee;
  --danger:     #c0392b;
  --danger-bg:  #fdf2f0;
  --warn:       #d97706;
  --warn-bg:    #fffbeb;
  --success:    #166534;
  --success-bg: #f0fdf4;
  --info:       #1e6fa8;
  --info-bg:    #eff6ff;

  --bg:         #f6f5f0;
  --bg-card:    #ffffff;
  --bg-sidebar: #0f2133;
  --text:       #1a1a1a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border:     #e2e0d8;
  --border-focus: #2e5f8a;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  --sidebar-w: 256px;
  --topbar-h:  60px;
  --transition: 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout Principal ───────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo .logo-mark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}
.sidebar-logo .logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-section {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.6);
  font-size: 13.5px;
  font-weight: 400;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
  position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-left-color: var(--gold);
  font-weight: 500;
}
.nav-link .nav-icon { font-size: 15px; width: 18px; text-align: center; opacity: 0.8; }
.nav-link .nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name {
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  text-transform: capitalize;
}

/* ── Main Content ───────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
}
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* ── Page Content ───────────────────────────────────── */
.page-content { padding: 28px; flex: 1; }
.page-header { margin-bottom: 24px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.page-header p { color: var(--text-muted); font-size: 13.5px; }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--navy);
}
.card-sm { padding: 16px 18px; }

/* ── Grid ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Metric Cards ───────────────────────────────────── */
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.metric-card:hover { box-shadow: var(--shadow); }
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}
.metric-card.navy::before   { background: var(--navy); }
.metric-card.teal::before   { background: var(--teal); }
.metric-card.gold::before   { background: var(--gold); }
.metric-card.success::before{ background: var(--success); }
.metric-card.danger::before { background: var(--danger); }
.metric-card.warn::before   { background: var(--warn); }
.metric-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.metric-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1; }
.metric-sub   { font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* ── Progress Bar ───────────────────────────────────── */
.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy-light));
  transition: width 0.5s ease;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  font-size: 13.5px; font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: var(--navy-light); }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #145a2c; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #a93226; color: #fff; }

.btn-warning { background: var(--warn); color: #fff; border-color: var(--warn); }
.btn-warning:hover { background: #b45309; color: #fff; }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge-rascunho  { background: #f1f5f9; color: #475569; }
.badge-aguardando{ background: var(--warn-bg); color: var(--warn); }
.badge-em_analise{ background: var(--info-bg); color: var(--info); }
.badge-pendente  { background: #fff4ec; color: #ea580c; }
.badge-finalizado{ background: var(--success-bg); color: var(--success); }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-info      { background: var(--info-bg); color: var(--info); }
.badge-success   { background: var(--success-bg); color: var(--success); }
.badge-warning   { background: var(--warn-bg); color: var(--warn); }
.badge-danger    { background: var(--danger-bg); color: var(--danger); }
.badge-orange    { background: #fff4ec; color: #ea580c; }

/* ── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

label.form-label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}
label.form-label .req { color: var(--danger); margin-left: 2px; }

input[type=text], input[type=email], input[type=password],
input[type=date], input[type=tel], input[type=number],
select, textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(46,95,138,.12);
}
input:disabled, select:disabled, textarea:disabled {
  background: #f8f8f6;
  color: var(--text-muted);
  cursor: not-allowed;
}
textarea { resize: vertical; min-height: 80px; }

.form-hint { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 11.5px; color: var(--danger); margin-top: 4px; }

.radio-group { display: flex; gap: 20px; padding-top: 4px; }
.radio-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; cursor: pointer;
}
.radio-label input { width: auto; }

/* ── Step Wizard ────────────────────────────────────── */
.wizard-steps {
  display: flex; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.wizard-step {
  flex: 1; padding: 12px 8px; text-align: center;
  font-size: 12px; font-weight: 500;
  border-bottom: 3px solid transparent;
  color: var(--text-light);
  cursor: pointer; transition: all var(--transition);
}
.wizard-step:hover { color: var(--text-muted); }
.wizard-step.done {
  border-bottom-color: var(--teal);
  color: var(--teal);
}
.wizard-step.active {
  border-bottom-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
}
.wizard-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid currentColor;
  font-size: 11px; font-weight: 700;
  margin-bottom: 4px;
}
.wizard-step.done .wizard-step-num { background: var(--teal); border-color: var(--teal); color: #fff; }
.wizard-step.active .wizard-step-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* ── Tables ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl thead tr { background: #f8f7f4; }
table.tbl th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0ede6;
  color: var(--text);
  vertical-align: middle;
}
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover td { background: #faf9f6; }

/* ── Status Flow ────────────────────────────────────── */
.status-flow {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
}
.status-node {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  background: #f1f5f9;
  color: #94a3b8;
  transition: all var(--transition);
}
.status-node.current {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,60,94,.25);
}
.status-node.done {
  background: var(--teal-light);
  color: var(--teal);
}
.status-arrow { color: var(--border); font-size: 14px; }

/* ── Timeline / Histórico ───────────────────────────── */
.timeline { padding: 4px 0; }
.timeline-item {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0ede6;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.timeline-date { font-size: 11.5px; color: var(--text-light); width: 110px; flex-shrink: 0; padding-top: 2px; }
.timeline-body { flex: 1; }
.timeline-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.timeline-text  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Notifications ──────────────────────────────────── */
.notif-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0ede6;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: #fafaf8; margin: 0 -24px; padding: 14px 24px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.notif-info  .notif-dot { background: var(--info); }
.notif-aviso .notif-dot { background: var(--warn); }
.notif-pendencia .notif-dot { background: #ea580c; }
.notif-aprovado  .notif-dot { background: var(--success); }
.notif-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.notif-text  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.notif-time  { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ── Upload Box ─────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--navy-light);
  background: #f0f6fc;
  color: var(--navy);
}
.upload-icon { font-size: 28px; margin-bottom: 10px; }
.upload-zone p { font-size: 13.5px; }
.upload-zone small { font-size: 12px; color: var(--text-light); }

/* ── Doc List ───────────────────────────────────────── */
.doc-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0ede6;
}
.doc-item:last-child { border-bottom: none; }
.doc-item-left { display: flex; align-items: center; gap: 10px; }
.doc-icon { font-size: 20px; }
.doc-name { font-size: 13.5px; font-weight: 500; }
.doc-meta { font-size: 11.5px; color: var(--text-light); }

/* ── Auth Pages ─────────────────────────────────────── */
.auth-bg {
  min-height: 100vh;
  background: var(--bg-sidebar);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-bg::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(46,95,138,.12);
}
.auth-bg::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(184,138,46,.08);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .mark {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.auth-logo .sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.auth-subtitle { font-size: 13.5px; color: var(--text-muted); margin-bottom: 24px; }
.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin: 16px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%; width: calc(50% - 20px);
  height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Alerts ─────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
  border-left: 4px solid;
}
.alert-info    { background: var(--info-bg);    border-color: var(--info);    color: #1e3a5f; }
.alert-success { background: var(--success-bg); border-color: var(--success); color: #14532d; }
.alert-warning { background: var(--warn-bg);    border-color: var(--warn);    color: #78350f; }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger);  color: #7f1d1d; }

/* ── Toast ──────────────────────────────────────────── */
#toast-container {
  position: fixed; top: 16px; right: 16px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--navy-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  max-width: 320px;
  display: flex; align-items: flex-start; gap: 8px;
}
.toast.toast-success { background: var(--success); }
.toast.toast-error   { background: var(--danger); }
.toast.toast-warning { background: var(--warn); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Spinner ────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.spinner-dark {
  border-color: rgba(26,60,94,.2);
  border-top-color: var(--navy);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Dividers ───────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Responsive sidebar ─────────────────────────────── */
.sidebar-toggle { display: none; }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .page-content { padding: 16px; }
}

/* ── Misc ───────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-navy   { color: var(--navy); }
.font-display{ font-family: var(--font-display); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12{ gap: 12px; }
.gap-16{ gap: 16px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.p-0   { padding: 0; }
.flex-1{ flex: 1; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Auth responsivo ── */
@media(max-width:480px){
  .auth-card { padding:28px 18px; border-radius:12px; }
  .auth-logo .mark { font-size:22px; }
}

/* ── APP.CSS RESPONSIVE FIXES v2 ───────────────────────── */
@media(max-width:768px) {
  /* Prevent iOS auto-zoom on focus */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="tel"],
  select, textarea {
    font-size: 16px !important;
  }
  .auth-card { padding: 28px 20px; }
  .auth-logo .mark { font-size: 20px; }
}
@media(max-width:380px) {
  .auth-card { padding: 22px 14px; margin: 8px; }
}
