/* ── Reset & Base ──────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #0F0F0F;
  --surface:   #1B1A1A;
  --gold:      #B9A88E;
  --pink:      #FF2372;
  --pink-mid:  #FE4B73;
  --pink-lite: #FF919C;
  --text:      #F7F7E6;
  --muted:     #595958;
  --border:    #2a2a2a;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  min-height: 100vh;
}

/* ── Tab Nav ───────────────────────────────────────────────────────────────── */

.tab-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tab-nav-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  padding: 0 20px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 16px 20px 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--pink);
}

/* ── Tab Content ───────────────────────────────────────────────────────────── */

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Container ─────────────────────────────────────────────────────────────── */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Branding Header ───────────────────────────────────────────────────────── */

.branding {
  text-align: center;
  padding: 36px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.title-img {
  max-width: 360px;
  width: 100%;
  height: auto;
}

/* ── Stats ─────────────────────────────────────────────────────────────────── */

.stats-section {
  margin-bottom: 28px;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.stat-row:first-child { border-top: 1px solid var(--border); }

.stat-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.stat-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

/* ── Input Section ─────────────────────────────────────────────────────────── */

.input-section {
  margin-bottom: 24px;
}

.input-label {
  display: block;
  color: var(--pink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.date-input,
.count-input {
  background: var(--text);
  color: #111;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  outline: none;
  transition: box-shadow 0.15s;
}

.date-input:focus,
.count-input:focus {
  box-shadow: 0 0 0 2px var(--pink);
}

.date-input {
  flex: 0 0 auto;
  width: 155px;
  cursor: pointer;
  color-scheme: light;
}

.count-input {
  flex: 1;
  min-width: 0;
  -moz-appearance: textfield;
}

.count-input::-webkit-outer-spin-button,
.count-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.save-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.save-btn:hover { background: #e01f66; }
.save-btn:active { transform: scale(0.97); }

/* ── Streak ────────────────────────────────────────────────────────────────── */

.streak-section {
  margin-bottom: 28px;
}

.streak-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
}

.streak-flame { font-size: 20px; }

.streak-number {
  color: var(--pink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.streak-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Recent Entries ────────────────────────────────────────────────────────── */

.recent-section {
  margin-bottom: 36px;
}

.section-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.entries-ledger {
  display: flex;
  flex-direction: column;
}

.entry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s;
}

.entry-row:nth-child(odd)  { background: var(--bg); }
.entry-row:nth-child(even) { background: var(--surface); }
.entry-row:hover { background: #232222; }
.entry-row:first-child { border-radius: 4px 4px 0 0; }
.entry-row:last-child  { border-radius: 0 0 4px 4px; }

.entry-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.entry-count {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.entry-edit-hint {
  color: var(--muted);
  font-size: 11px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}

.entry-row:hover .entry-edit-hint { opacity: 1; }

/* Inline edit row */
.entry-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #1e1d1d;
  border-left: 2px solid var(--pink);
}

.entry-edit-date-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 90px;
}

.entry-edit-input {
  background: var(--text);
  color: #111;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  width: 100px;
  outline: none;
  -moz-appearance: textfield;
}

.entry-edit-input::-webkit-outer-spin-button,
.entry-edit-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.entry-edit-input:focus { box-shadow: 0 0 0 2px var(--pink); }

.entry-edit-save {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
}

.entry-edit-save:hover { background: #e01f66; }

.entry-edit-cancel {
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
}

.entry-edit-cancel:hover { color: var(--text); }

.entry-edit-delete {
  background: none;
  color: #666;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  line-height: 1;
  transition: color 0.15s;
}

.entry-edit-delete:hover { color: #ff4444; }

/* ── Chart Sections ────────────────────────────────────────────────────────── */

.chart-section {
  margin-bottom: 32px;
}

.chart-header-img {
  display: block;
  max-width: 260px;
  height: auto;
  margin-bottom: 12px;
}

/* The picture-frame effect: pink border → gold mat → dark inner */
.chart-frame {
  border: 3px solid var(--pink);
  padding: 14px;
  background: var(--gold);
  border-radius: 2px;
}

.chart-inner {
  background: var(--bg);
  padding: 12px 10px 8px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: 200px;
  overflow: visible;
}

/* SuperFan frame (same style as chart frame) */
.superfan-frame {
  padding: 14px;
}

/* ── SuperFan Grid ──────────────────────────────────────────────────────────── */

.superfan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--bg);
  padding: 16px;
}

.superfan-card {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.superfan-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter 0.4s, opacity 0.4s;
}

.superfan-card.locked img {
  filter: grayscale(100%);
  opacity: 0.3;
}

.superfan-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #fff;
  color: #111;
  border-radius: 20px;
  padding: 2px 7px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.superfan-card.locked .superfan-badge {
  color: #666;
}

/* ── All-Time Total ─────────────────────────────────────────────────────────── */

.alltime-section {
  text-align: center;
  padding: 32px 0 16px;
}

.alltime-label {
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.alltime-value {
  color: var(--text);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ── Admin Tab ──────────────────────────────────────────────────────────────── */

.admin-container {
  padding-top: 32px;
}

.admin-section {
  margin-bottom: 48px;
}

.admin-heading {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.year-selector-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.year-note {
  color: var(--muted);
  font-size: 13px;
}

.admin-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 8px 14px;
  cursor: pointer;
  outline: none;
}

.admin-select:focus { border-color: var(--pink); }

/* Add entry form */
.add-entry-form,
.add-sf-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.admin-input-date,
.admin-input-count,
.admin-input-text {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.admin-input-date:focus,
.admin-input-count:focus,
.admin-input-text:focus { border-color: var(--pink); }

.admin-input-date { color-scheme: dark; }
.admin-input-count { width: 160px; -moz-appearance: textfield; }
.admin-input-count::-webkit-outer-spin-button,
.admin-input-count::-webkit-inner-spin-button { -webkit-appearance: none; }
.admin-input-text { flex: 1; min-width: 160px; }

.admin-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.admin-btn.primary { background: var(--pink); color: #fff; }
.admin-btn.primary:hover { background: #e01f66; }
.admin-btn.secondary { background: var(--border); color: var(--text); }
.admin-btn.secondary:hover { background: #333; }
.admin-btn.danger { background: #3a1a1a; color: #ff5555; border: 1px solid #3a1a1a; }
.admin-btn.danger:hover { background: #4a2222; }
.admin-btn.danger-strong {
  background: #5a1010;
  color: #ff5555;
  border: 1px solid #7a2020;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s;
  white-space: nowrap;
}
.admin-btn.danger-strong:hover { background: #7a1515; }

/* History table */
.history-table-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.history-table td {
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.history-table tbody tr:nth-child(odd) { background: var(--bg); }
.history-table tbody tr:nth-child(even) { background: var(--surface); }
.history-table tbody tr:last-child td { border-bottom: none; }

.history-table .date-cell { color: var(--muted); font-size: 13px; }
.history-table .count-cell { color: var(--text); font-weight: 600; }

.inline-edit-input {
  background: var(--text);
  color: #111;
  border: none;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
  width: 100px;
  outline: none;
  -moz-appearance: textfield;
}
.inline-edit-input::-webkit-outer-spin-button,
.inline-edit-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.inline-edit-input:focus { box-shadow: 0 0 0 2px var(--pink); }

.table-action-cell {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.tbl-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.tbl-btn.edit    { background: #2a2a2a; color: var(--text); }
.tbl-btn.edit:hover  { background: #333; }
.tbl-btn.save    { background: var(--pink); color: #fff; }
.tbl-btn.save:hover  { background: #e01f66; }
.tbl-btn.cancel  { background: #2a2a2a; color: var(--muted); }
.tbl-btn.cancel:hover { color: var(--text); }
.tbl-btn.delete  { background: none; color: #555; }
.tbl-btn.delete:hover { color: #ff4444; }

/* SuperFan admin list */
.superfan-admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
}

.sf-admin-emoji {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.sf-admin-milestone {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  min-width: 70px;
}

.sf-admin-file {
  color: var(--muted);
  font-size: 12px;
  flex: 1;
}

.sf-admin-unlocked {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-admin-unlocked.yes { background: #1a2e1a; color: #4ade80; }
.sf-admin-unlocked.no  { background: #2a2a2a; color: #555; }

.sf-order-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sf-order-btn {
  background: #2a2a2a;
  border: none;
  color: var(--muted);
  font-size: 12px;
  width: 24px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.sf-order-btn:hover { background: #3a3a3a; color: var(--text); }
.sf-order-btn:disabled { opacity: 0.3; cursor: default; }

/* SuperFan inline edit row */
.sf-edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #161616;
  border-left: 2px solid var(--pink);
  margin-bottom: 4px;
}

.sf-edit-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Danger zone */
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #1a0f0f;
  border: 1px solid #4a2020;
  border-radius: 6px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.danger-description {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.danger-description strong {
  color: #ff7070;
  font-size: 14px;
  font-weight: 600;
}

.danger-description span {
  color: var(--muted);
  font-size: 13px;
  max-width: 420px;
}

/* ── Unlock Overlay ─────────────────────────────────────────────────────────── */

.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unlock-overlay.hidden { display: none; }

.unlock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.unlock-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 3px solid var(--pink);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  animation: cardReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 0 60px rgba(255, 35, 114, 0.4), 0 0 120px rgba(255, 35, 114, 0.15);
}

@keyframes cardReveal {
  from { transform: scale(0.6) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.unlock-heading {
  color: var(--pink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.unlock-emoji-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  animation: emojiPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes emojiPop {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.unlock-emoji {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 35, 114, 0.6));
}

.unlock-badge {
  position: absolute;
  bottom: 0;
  right: -8px;
  background: #fff;
  color: #111;
  border-radius: 20px;
  padding: 3px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.unlock-milestone-text {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--muted);
}

.unlock-dismiss-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.unlock-dismiss-btn:hover { background: #e01f66; }
.unlock-dismiss-btn:active { transform: scale(0.97); }

/* Sparkles */
.unlock-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
}

.sparkle {
  position: absolute;
  color: var(--pink);
  font-size: 18px;
  animation: sparkleDrift 2s ease-in-out infinite;
  opacity: 0;
}

.sparkle.s1 { top: 10%; left: 8%;  animation-delay: 0s; }
.sparkle.s2 { top: 8%;  right: 8%; animation-delay: 0.3s; }
.sparkle.s3 { top: 50%; left: 4%;  animation-delay: 0.6s; font-size: 12px; }
.sparkle.s4 { top: 50%; right: 4%; animation-delay: 0.9s; font-size: 12px; }
.sparkle.s5 { bottom: 12%; left: 10%;  animation-delay: 0.15s; }
.sparkle.s6 { bottom: 12%; right: 10%; animation-delay: 0.45s; }

@keyframes sparkleDrift {
  0%   { opacity: 0; transform: scale(0.5) translateY(0); }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2) translateY(-16px); }
}

/* Glow pulse on the card border */
.unlock-card {
  animation: cardReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             glowPulse 2s ease-in-out 0.5s infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255,35,114,0.35), 0 0 80px rgba(255,35,114,0.1); }
  50%      { box-shadow: 0 0 60px rgba(255,35,114,0.6), 0 0 120px rgba(255,35,114,0.25); }
}

/* ── Logout button ──────────────────────────────────────────────────────────── */

.tab-logout-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  align-self: center;
  transition: color 0.15s, border-color 0.15s;
}

.tab-logout-btn:hover { color: var(--text); border-color: #444; }

/* ── Change Password form ────────────────────────────────────────────────────── */

.change-pw-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
}

.change-pw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.change-pw-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pw-message {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #3a1a1a;
  color: #ff7070;
  border: 1px solid #5a2020;
}

.pw-message.success {
  background: #0f2a1a;
  color: #4ade80;
  border-color: #1a4a2a;
}

/* ── Login Overlay ───────────────────────────────────────────────────────────── */

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-overlay.hidden { display: none; }

.login-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.login-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.login-title-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 36px;
}

#login-form-panel,
#reset-form-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.login-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 35, 114, 0.15);
}

.login-error {
  color: #ff7070;
  background: #2a1010;
  border: 1px solid #4a2020;
  border-radius: 4px;
  font-size: 13px;
  padding: 9px 12px;
}

.login-success {
  color: #4ade80;
  background: #0f2a1a;
  border: 1px solid #1a4a2a;
  border-radius: 4px;
  font-size: 13px;
  padding: 9px 12px;
}

.login-submit-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px;
  width: 100%;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s, transform 0.1s;
}

.login-submit-btn:hover { background: #e01f66; }
.login-submit-btn:active { transform: scale(0.98); }

.login-text-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s;
}

.login-text-btn:hover { color: var(--text); }

.reset-instructions {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: -4px;
}

.reset-instructions code {
  color: var(--text);
  background: #222;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* ── Utility ────────────────────────────────────────────────────────────────── */

.hidden { display: none !important; }

/* No entries state */
.no-entries {
  color: var(--muted);
  font-size: 13px;
  padding: 20px 12px;
  text-align: center;
  background: var(--surface);
  border-radius: 4px;
}
