/* ---------- Design tokens ---------- */
:root {
  --yellow: #F5B800;
  --yellow-dark: #D69E00;
  --yellow-light: #FFF3D1;
  --green: #3FA34D;
  --green-dark: #2C7A38;
  --green-light: #E1F4E4;
  --red: #E5484D;
  --red-light: #FBE4E4;
  --gray: #9AA5A0;
  --gray-light: #EEF2EF;
  --ink: #22281F;
  --ink-soft: #5B6B60;
  --bg: #FBF9F3;
  --card-bg: #FFFFFF;
  --border: #E7E2D3;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(34, 40, 31, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --status-cobrada: var(--green);
  --status-pendiente: var(--yellow);
  --status-perdida: var(--red);
  --status-cancelada: var(--gray);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px calc(100px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Wrapper que varias secciones (Marcar pagos, Historias clínicas) usan para
   re-renderizar su contenido dinámico sin tocar el resto de la pantalla.
   Necesita el mismo flex+gap que .app para que sus cards/botones no queden
   pegados entre sí. */
#body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  display: flex;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(34, 40, 31, 0.16);
  z-index: 40;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 4px 2px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: inherit;
  cursor: pointer;
}
.bottom-nav-item.active { color: var(--ink); }
.bottom-nav-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.05rem;
  line-height: 1;
}
.bottom-nav-item.active .bottom-nav-icon { background: var(--yellow); }
.bottom-nav-label { font-size: 0.64rem; font-weight: 700; }

.loading {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
}

h1, h2, h3, p { margin: 0; }

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.header-title-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.header-count-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.header h1 {
  font-size: 1.3rem;
  font-weight: 700;
}

.header .subtitle {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.btn-back {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 10px 14px;
}

.month-nav .label {
  font-weight: 700;
  text-transform: capitalize;
}
.month-nav .label-clickable { cursor: pointer; }
.month-nav .label-icon { font-size: 0.8rem; opacity: 0.6; }

.month-nav button {
  background: var(--yellow-light);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card + .card { margin-top: 0; }

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Chart card ---------- */
.chart-card { display: flex; flex-direction: column; gap: 12px; }
.chart-card .chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.chart-card .currency-badge {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yellow-light);
  color: var(--yellow-dark);
}
.chart-card .currency-badge.usd {
  background: var(--green-light);
  color: var(--green-dark);
}
.chart-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.chart-donut { flex-shrink: 0; }
.chart-total {
  font-size: 1.1rem;
  font-weight: 700;
}
.chart-total .sub { font-size: 0.7rem; color: var(--ink-soft); font-weight: 400; }
.stats-chart-wrap { overflow-x: auto; }

.legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-label { color: var(--ink-soft); flex: 1; }
.legend-value { font-weight: 700; white-space: nowrap; }

/* ---------- Dashboard folder tabs ---------- */
.dash-tabs-bar {
  position: relative;
  display: flex;
  gap: 22px;
  background: var(--gray-light);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 8px 16px 0 4px;
}
.dash-tab-btn {
  position: relative;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 10px 2px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
}
.dash-tab-btn.active {
  background: var(--card-bg);
  color: var(--ink);
  padding: 10px 14px;
  margin: 0 -12px;
}
.dash-tab-btn.active::before,
.dash-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 12px;
}
.dash-tab-btn.active::before {
  left: -12px;
  background: radial-gradient(circle at top left, transparent 12px, var(--card-bg) 12.5px);
}
.dash-tab-btn.active::after {
  right: -12px;
  background: radial-gradient(circle at top right, transparent 12px, var(--card-bg) 12.5px);
}
.dash-tabs-content {
  background: var(--card-bg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding-top: 12px;
}

/* ---------- Appointment list ---------- */
.appt-list { display: flex; flex-direction: column; gap: 10px; }
.appt-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--gray-light);
}
.appt-row-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.appt-row .who { flex: 1; min-width: 0; }
.appt-row .name { font-weight: 700; font-size: 0.9rem; }
.appt-row .when { font-size: 0.78rem; color: var(--ink-soft); text-transform: capitalize; }
.appt-row .amount { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.appt-actions { display: flex; gap: 8px; }
.appt-actions .btn { flex: 1; }
.hc-pending-action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.empty-hint {
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px 0;
}

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:active { background: var(--green-dark); }
.btn-secondary { background: var(--yellow); color: var(--ink); }
.btn-secondary:active { background: var(--yellow-dark); }
.btn-ghost { background: var(--gray-light); color: var(--ink); }
.btn-danger { background: var(--red-light); color: var(--red); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-sm { padding: 7px 10px; font-size: 0.76rem; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 70px; }

.combobox { position: relative; }
.combobox-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
}
.combobox-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
.combobox-item:last-child { border-bottom: none; }
.combobox-item:hover, .combobox-item:active { background: var(--gray-light); }
.combobox-item-new { font-weight: 700; color: var(--yellow-dark); }

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.field-row input[type="date"],
.field-row input[type="time"] {
  padding: 9px 6px;
  font-size: 0.8rem;
}

.slot-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--gray-light);
  padding: 12px 44px 4px 12px;
  margin-bottom: 10px;
}
.slot-card .field { margin-bottom: 12px; }
.slot-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red-light);
  color: var(--red);
  border: none;
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.form-actions .btn { flex: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  z-index: 50;
}

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 60;
}
.confetti-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  opacity: 1;
  animation-name: confetti-burst;
  animation-timing-function: cubic-bezier(0.15, 0.6, 0.4, 1);
  animation-fill-mode: forwards;
}
@keyframes confetti-burst {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Status badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-cobrada { background: var(--green-light); color: var(--green-dark); }
.badge-pendiente { background: var(--yellow-light); color: var(--yellow-dark); }
.badge-perdida { background: var(--red-light); color: var(--red); }
.badge-cancelada { background: var(--gray-light); color: var(--ink-soft); }

/* ---------- Patient list (marcar pagos) ---------- */
.patient-list { display: flex; flex-direction: column; gap: 8px; }
.patient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.patient-row .name { font-weight: 700; font-size: 0.92rem; }
.patient-row .meta { font-size: 0.76rem; color: var(--ink-soft); }
.patient-row .chev { color: var(--ink-soft); }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.summary-tile {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.summary-tile .label { font-size: 0.72rem; color: var(--ink-soft); }
.summary-tile .value { font-size: 1rem; font-weight: 700; margin-top: 2px; }

/* ---------- Calendar ---------- */
.cal-tabs { display: flex; gap: 8px; }
.cal-tabs button {
  flex: 1;
  border: none;
  background: var(--gray-light);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.cal-tabs button.active { background: var(--yellow); color: var(--ink); }

.cal-day {
  margin-bottom: 12px;
}
.cal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
}
.cal-day-header .day-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: capitalize;
  cursor: pointer;
}
.cal-day-header .day-count {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: none;
  margin-left: 4px;
}
.cal-day-header .day-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.day-tag-btn {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-light);
  border: none;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.cal-day-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cal-day.non-working { opacity: 0.7; }
.cal-day.non-working .cal-day-header { background: var(--red-light); border-radius: var(--radius-sm); }
.cal-day.holiday .cal-day-header { background: var(--yellow-light); border-radius: var(--radius-sm); }

.icon-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn-danger { background: var(--red-light); color: var(--red); }
.appt-row-top .icon-btn-danger { width: 22px; height: 22px; font-size: 0.68rem; }

.cal-appt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  cursor: pointer;
}
.cal-appt-main { display: flex; align-items: center; gap: 10px; }
.cal-appt-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-appt .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cal-appt .hour { font-weight: 700; font-size: 0.82rem; width: 44px; flex-shrink: 0; }
.cal-appt .name { flex: 1; font-size: 0.85rem; min-width: 0; }
.cal-appt-icons { display: flex; gap: 6px; }
.cal-appt-icons .icon-btn { width: 26px; height: 26px; font-size: 0.8rem; }

/* ---------- Timeline (vista Día) ---------- */
.timeline-wrap {
  position: relative;
  display: flex;
  margin-top: 14px;
}
.timeline-hours {
  position: relative;
  width: 42px;
  flex-shrink: 0;
}
.timeline-hour-label {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.timeline-events {
  position: relative;
  flex: 1;
  margin-left: 8px;
  border-left: 1px solid var(--border);
}
.timeline-gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
}
.timeline-event {
  position: absolute;
  left: 6px;
  right: 0;
  min-height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gray);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
  user-select: none;
}
.timeline-event.draggable { cursor: grab; }
.timeline-event.dragging { opacity: 0.85; z-index: 10; box-shadow: 0 6px 16px rgba(34, 40, 31, 0.25); touch-action: none; }
.timeline-event-time { font-weight: 700; flex-shrink: 0; }
.timeline-event-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-event .timeline-cancel { width: 24px; height: 24px; font-size: 0.7rem; flex-shrink: 0; }

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.cal-month-cell {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  min-height: 64px;
  font-size: 0.68rem;
  cursor: pointer;
}
.cal-month-cell.non-working { background: var(--red-light); }
.cal-month-cell.holiday { background: var(--yellow-light); }
.cal-month-cell .date-num { font-weight: 700; }
.cal-month-cell .count { color: var(--ink-soft); margin-top: 2px; }
.cal-month-cell.other-month { opacity: 0.35; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 40, 31, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}
.modal-sheet {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow-y: auto;
}
.modal-sheet h3 { font-size: 1.05rem; margin-bottom: 14px; }
.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--ink-soft);
  cursor: pointer;
}

@media (min-width: 481px) {
  body { background: var(--gray-light); }
  .app { margin-top: 20px; margin-bottom: 20px; border-radius: 24px; box-shadow: var(--shadow); background: var(--bg); }
}

/* ---------- Historia clínica ---------- */
.hc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}
.hc-chev {
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 10px;
}
.hc-chev-collapsed { transform: rotate(-90deg); }

.hc-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
}
.hc-entry:last-child { margin-bottom: 0; }
.hc-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.hc-entry-date { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); text-transform: capitalize; }
.hc-entry-header .icon-btn { width: 26px; height: 26px; font-size: 0.78rem; }
.hc-entry-text { font-size: 0.88rem; white-space: pre-wrap; word-break: break-word; }

.hc-entry-textarea { min-height: 180px; }

.hc-record-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 0 20px;
}
.hc-record-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.hc-record-icon-live {
  background: var(--red-light);
  animation: hc-pulse 1.2s ease-in-out infinite;
}
.hc-record-status { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }

@keyframes hc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); }
}

/* ---------- Más (menú de la botonera) ---------- */
.more-menu { display: flex; flex-direction: column; gap: 8px; }
.more-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-light);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.more-menu-icon { font-size: 1.2rem; }

/* ---------- Login / registro ---------- */
/* Pantallas de login/registro: tema oscuro propio, distinto del resto de la
   app (fondo claro). position:fixed las saca del flujo/padding de .app para
   poder cubrir toda la pantalla con su propio fondo. */
.auth-page {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  background: #17261a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-logo { margin-bottom: 20px; }
.auth-title {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #F5F1E6;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
}
.auth-subtitle {
  color: #8FA48C;
  font-size: 0.95rem;
  margin: 6px 0 32px;
  text-align: center;
}
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.auth-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7E9280;
}
.auth-field input, .auth-field select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #F5F1E6;
  font-family: inherit;
  width: 100%;
}
.auth-field select option { color: #141225; }
.auth-field input::placeholder { color: #6C7F6E; }
.auth-field input:focus, .auth-field select:focus { outline: none; border-color: rgba(233, 196, 106, 0.6); }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 44px; }
.auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8FA48C;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-submit-btn {
  margin-top: 6px;
  background: linear-gradient(135deg, #F0D385, #C99A3A);
  color: #241B05;
  border: none;
  border-radius: 999px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.auth-submit-btn:disabled { opacity: 0.6; cursor: default; }
.auth-footer-text, .auth-forgot-text {
  text-align: center;
  font-size: 0.85rem;
  color: #8FA48C;
  margin: 0;
}
.auth-footer-text { margin-top: 24px; }
.auth-forgot-text {
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: default;
}
.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #E9C46A;
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}
