@charset "UTF-8";

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f2ee; --sidebar-bg: #1a1814; --sidebar-width: 220px;
  --accent: #c8a96e; --text-main: #2a2520; --text-dim: #888070;
  --text-sidebar: #d4cec5; --active-bg: rgba(200,169,110,0.15);
  --hover-bg: rgba(255,255,255,0.05); --topbar-h: 56px;
  --font-main: 'Nanum Myeongjo', serif;
}
@media (prefers-color-scheme: dark) {
  .legend-text { color: #ccc; }
  .legend-dot { opacity: 0.9; }
  :root {
    --bg: #1a1a1a;
    --text-main: #f0ece6;
    --text-dim: #a09880;
    --border: #333;
  }
  .card { background: #2a2a2a; }
  .stat { background: #333; }
  .stat.highlight { background: #1e2d45; }
  .stat.highlight .stat-value { color: #7ab3f5; }
  .stat.highlight .stat-label { color: #7ab3f5; }
  .purchase { border-bottom-color: #333; }
  .divider { border-top-color: #333; }
  .next { background: #2d2210; }
  .next-label { color: #d4a44c; }
  .next-value { color: #d4a44c; }
  .cal-container { background: #2a2a2a; }
  .cal-cell { background: #333; border-color: #444; }
  .cal-cell.empty { background: transparent; border-color: transparent; }
  .cal-cell.holiday { background: #2d1a1a; border-color: #5a2a2a; }
  .cal-cell.skip { background: #2a2a2a; }
  .s-card { background: #2a2a2a; border-color: #444; }
  .progress-wrap { background: #2a2a2a; border-color: #444; }
  .progress-bar-bg { background: #333; }
  .month-tab { background: #2a2a2a; color: #888; border-color: #444; }
  .week-block { background: #2a2a2a; border-color: #444; }
  .week-day { background: #333; }
  .week-day.holiday { background: #2d1a1a; }
  .week-day.today { background: #1e2d45; }
  .modal { background: #2a2a2a; }
  .modal-title { color: #f0ece6; }
  .modal-input { background: #3a3a3a; border-color: #555; color: #f0ece6; }
  .modal-input::placeholder { color: #666; }
  .modal-input[type="date"] { color-scheme: dark; }
  .modal-cancel { background: #333; color: #aaa; }
  .add-card-btn { background: #2a2a2a; border-color: #444; color: #666; }
  .history-log-toggle { color: #666; }
  .history-log-item { color: #666; border-bottom-color: #333; }
  .topbar { background: #111; }
  nav { background: #111 !important; }
  .date-num { color: #ccc; }
  .cal-month-label { color: #888; }
  .day-hdr { color: #666; }
  .purchase-date { color: #999; }
  .purchase-detail { color: #777; }
  .product-name { color: #f0ece6; }
  .badge { background: #1a3020; color: #5a9a6a; }
}

body { font-family: var(--font-main); background: var(--bg); color: var(--text-main); display: flex; min-height: 100vh; touch-action: manipulation; }
nav { width: var(--sidebar-width); min-height: 100vh; background: var(--sidebar-bg); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; z-index: 200; transition: transform 0.3s ease; }
.nav-logo { padding: 36px 28px 28px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.nav-logo span { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.nav-logo h1 { font-size: 20px; font-weight: 300; color: #fff; margin-top: 6px; }
.nav-menu { list-style: none; padding: 20px 0; flex: 1; }
.nav-menu li a { display: flex; align-items: center; gap: 12px; padding: 14px 28px; text-decoration: none; color: var(--text-sidebar); font-size: 15px; font-weight: 300; letter-spacing: 0.04em; transition: all 0.2s; position: relative; cursor: pointer; }
.nav-menu li a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); transition: all 0.2s; flex-shrink: 0; }
.nav-menu li a:hover { background: var(--hover-bg); color: #fff; }
.nav-menu li a:hover .dot { background: var(--accent); }
.nav-menu li.active a { background: var(--active-bg); color: var(--accent); }
.nav-menu li.active a .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nav-menu li.active a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.nav-logout {
  padding: 12px 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-logout button {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #888070;
  font-size: 12px;
  font-family: var(--font-main);
  padding: 8px 16px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.nav-logout button:hover {
  border-color: rgba(255,255,255,0.3);
  color: #d4cec5;
}

.nav-footer { padding: 20px 28px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 10px; color: var(--text-dim); letter-spacing: 0.1em; }
.topbar { display: none; position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); background: var(--sidebar-bg); align-items: center; justify-content: space-between; padding: 0 20px; z-index: 300; }
.topbar-title { font-size: 16px; font-weight: 300; color: #fff; }
.hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 10px; z-index: 400; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: #fff; transition: all 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.overlay.visible { display: block; opacity: 1; pointer-events: auto; }
main { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; }
.page { display: none; }
.page.active { display: block; }

/* Daily */
.daily-page { padding: 60px 56px; }
.page-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid rgba(42,37,32,0.1); }
.page-header h2 { font-size: 32px; font-weight: 300; }
.card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.product-name { font-size: 16px; font-weight: 700; color: #111; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #EAF3DE; color: #3B6D11; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: #f8f8f8; border-radius: 10px; padding: 10px 12px; }
.stat-label { font-size: 11px; color: #999; margin-bottom: 3px; }
.stat-value { font-size: 15px; font-weight: 600; color: #111; }
.stat.highlight { background: #EEF4FF; }
.stat.highlight .stat-label { color: #7799DD; }
.stat.highlight .stat-value { color: #3355BB; }
.divider { border: none; border-top: 1px solid #f0f0f0; margin: 0 0 12px; }
.history-title { font-size: 11px; font-weight: 600; color: #aaa; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.purchase { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.purchase:last-of-type { border-bottom: none; padding-bottom: 0; }
.purchase-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.purchase-date { font-size: 13px; color: #111; }
.purchase-price { font-size: 14px; font-weight: 600; color: #111; }
.purchase-detail { font-size: 12px; color: #aaa; }
.purchase.latest .purchase-date { color: #3355BB; font-weight: 600; }
.purchase.latest .purchase-price { color: #3355BB; }
.next { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; background: #FFF4E5; border-radius: 10px; padding: 10px 12px; }
.next-label { font-size: 12px; color: #BB7700; }
.next-value { font-size: 13px; font-weight: 600; color: #995500; }
.updated { text-align: center; font-size: 11px; color: #bbb; margin-top: 4px; }

/* Daily 편집 버튼 */
.edit-btn { background: none; border: none; cursor: pointer; font-size: 13px; padding: 2px 4px; opacity: 0.5; transition: opacity 0.2s; vertical-align: middle; }
.edit-btn:hover { opacity: 1; }
.edit-input { font-size: 14px; font-weight: 600; color: #111; border: 1px solid #c8a96e; border-radius: 6px; padding: 3px 8px; width: 90px; font-family: var(--font-main); outline: none; }
.stat-value-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* 구매이력 + 버튼 */
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.add-btn { background: #D1D5DB; color: #6B7280; border: none; border-radius: 6px; width: 22px; height: 22px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.add-btn:hover { background: #9CA3AF; color: #fff; }
.arrived-btn {
  background: #E4E1DA; border: none; border-radius: 5px;
  padding: 3px 8px; font-size: 11px; cursor: pointer;
  color: #B0ADA5; transition: all 0.2s;
  font-family: var(--font-main);
}
.arrived-btn.on { background: #555; color: #fff; }
.arrived-btn:hover { background: #D0CCC5; }
.del-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #ccc; font-size: 16px; cursor: pointer; line-height: 1; padding: 2px 4px; }
.card-del-btn { background: none; border: none; cursor: pointer; font-size: 14px; opacity: 0.4; padding: 2px 4px; transition: opacity 0.2s; }
.history-log { margin-top: 12px; border-top: 1px solid #f0f0f0; padding-top: 10px; }
.history-log-toggle { background: none; border: none; cursor: pointer; font-size: 11px; color: #bbb; font-family: var(--font-main); padding: 0; letter-spacing: 0.05em; display: flex; align-items: center; gap: 4px; }
.history-log-toggle:hover { color: #888; }
.history-log-list { margin-top: 8px; display: none; }
.history-log-list.open { display: block; }
.history-log-item { font-size: 11px; color: #bbb; padding: 3px 0; border-bottom: 1px solid #f8f8f8; font-family: var(--font-main); }
.history-log-item:last-child { border-bottom: none; }
.history-log-item .log-type { display: inline-block; width: 40px; font-weight: 600; }
.history-log-item .log-type.mod { color: #c8a96e; }
.history-log-item .log-type.del { color: #DC2626; }
.history-log-item .log-type.add { color: #16A34A; }
.card-del-btn:hover { opacity: 1; }
.add-card-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; background: #fff; border: 2px dashed #E4E1DA; border-radius: 16px; color: #aaa; font-size: 14px; font-family: var(--font-main); cursor: pointer; margin-bottom: 20px; transition: all 0.2s; }
.add-card-btn:hover { border-color: #c8a96e; color: #c8a96e; }
.card[draggable=true] { cursor: grab; }
.card[draggable=true]:active { cursor: grabbing; }
.card.drag-over { border: 2px dashed #c8a96e; opacity: 0.7; }
.del-btn:hover { color: #DC2626; }

/* 팝업 */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 500; align-items: center; justify-content: center; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 24px; width: min(340px, calc(100vw - 32px)); box-shadow: 0 8px 32px rgba(0,0,0,0.15); overflow: hidden; }
.modal-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 20px; }
.modal-field { margin-bottom: 14px; }
.modal-label { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.modal-input { width: 100%; border: 1px solid #E4E1DA; border-radius: 8px; padding: 9px 12px; font-size: 14px; font-family: var(--font-main); outline: none; color: #111; background: #fff; box-sizing: border-box; }
.modal-input:focus { border-color: #c8a96e; }
.modal-input[type="date"] { appearance: none; -webkit-appearance: none; padding: 9px 12px; width: 100%; }
.modal-input[readonly] { background: #f8f8f8; color: #888; }
.modal-btns { display: flex; gap: 8px; margin-top: 20px; }
.modal-save { flex: 1; background: #2563EB; color: #fff; border: none; border-radius: 8px; padding: 11px; font-size: 14px; cursor: pointer; font-family: var(--font-main); }
.modal-save:hover { background: #1D4ED8; }
.modal-cancel { flex: 1; background: #f5f2ee; color: #666; border: none; border-radius: 8px; padding: 11px; font-size: 14px; cursor: pointer; font-family: var(--font-main); }
.modal-cancel:hover { background: #eae7e2; }

/* Swim */
.swim-page { padding: 48px 48px 48px 56px; }
.month-tabs { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 28px; }
.month-row { display: contents; }
.month-tab { font-family: var(--font-main); font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 99px; border: 1px solid #E4E1DA; background: #fff; color: #7A7870; cursor: pointer; transition: all 0.2s; user-select: none; flex: 1; text-align: center; }
.month-tab.active { background: #2563EB; border-color: #2563EB; color: #fff; }
.month-tab.disabled { opacity: 0.35; pointer-events: none; }
.summary { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-bottom: 16px; }
.s-card { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid #E4E1DA; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.s-label { font-size: 11px; color: #7A7870; text-transform: uppercase; margin-bottom: 6px; }
.s-value { font-size: 28px; font-weight: 500; color: #1A1A18; }
.s-value.blue { color: #2563EB; }
.s-value.green { color: #16A34A; }
.s-value.red { color: #DC2626; }
.progress-label { font-size: 11px; color: #7A7870; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.05em; }
.progress-wrap { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid #E4E1DA; margin-bottom: 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.progress-bar-bg { flex: 1; height: 8px; background: #F8F6F1; border-radius: 99px; overflow: hidden; border: 1px solid #E4E1DA; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg,#2563EB,#60A5FA); border-radius: 99px; width: 0%; transition: width 0.4s; }
.progress-pct { font-size: 13px; font-weight: 500; color: #2563EB; min-width: 36px; text-align: right; }
/* 주차 리스트 */
.week-container { display: flex; flex-direction: column; gap: 12px; }
.week-block { background: #fff; border-radius: 12px; border: 1px solid #E4E1DA; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.week-block.current-week { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }
.week-block.past-week { opacity: 0.55; }
.week-label { font-size: 13px; font-weight: 700; color: #B0ADA5; letter-spacing: 0.04em; margin-bottom: 14px; font-family: 'Nanum Myeongjo', serif; }
.week-label.current { color: #2563EB; }
.week-days { display: flex; flex-direction: column; gap: 6px; }
.week-day { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #F8F6F1; }
.week-day.holiday { background: #FFF5F5; }
.week-day.skip { opacity: 0.5; }
.week-day.today { background: #EEF4FF; }
.week-day-date { font-family: 'Nanum Myeongjo', serif; font-size: 13px; color: #1A1A18; min-width: 50px; }
.week-day-date.sun { color: #EF4444; }
.week-day-date.sat { color: #3B82F6; }
.week-day-holiday { font-size: 10px; color: #DC2626; opacity: 0.8; white-space: nowrap; }
.week-day-btns { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.swim-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.week-day-btns .swim-btn { padding: 8px 14px; font-size: 15px; }
.swim-btn-label { font-size: 9px; color: #B0ADA5; font-family: 'Nanum Myeongjo', serif; white-space: nowrap; }
.holiday-label { font-size: 8px; color: #DC2626; }
.skip-label { font-size: 8px; color: #888; }
.swim-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; margin: 3px 0; padding: 4px 8px 3px; border: none; border-radius: 8px; background: #E8EDFF; color: #7A9AF7; font-size: 14px; line-height: 1; cursor: pointer; opacity: 0.5; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; font-family: var(--font-main); }
.swim-btn-text { font-size: 9px; color: #7A9AF7; font-family: var(--font-main); line-height: 1; }
.swim-btn.on { background: #2563EB; color: #fff; opacity: 1; }
.swim-btn.on .swim-btn-text { color: rgba(255,255,255,0.8); }
.swim-btn.free { background: #F0FDF4; color: #BBF7D0; border: 1px solid #D1FAE5; opacity: 0.15; }
.swim-btn.special { background: #FFF7ED; color: #FDBA74; border: 1px solid #FED7AA; opacity: 0.15; }
.swim-btn.special.on { background: #F97316; color: #fff; opacity: 1; border-color: #EA6D0A; }
.swim-btn.special .swim-btn-text { color: #FDBA74; }
.swim-btn.special.on .swim-btn-text { color: rgba(255,255,255,0.8); }
.swim-btn.free.on { background: #16A34A; color: #fff; opacity: 1; border-color: #15803D; }
.swim-btn.free .swim-btn-text { color: #86EFAC; }
.swim-btn.free.on .swim-btn-text { color: rgba(255,255,255,0.8); }
.swim-btn.holiday { opacity: 0.3; }
.legend { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #E4E1DA; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-text { font-size: 11px; color: #4a4740; }

.cal-container { background: #fff; border-radius: 12px; border: 1px solid #E4E1DA; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.cal-month-label { font-size: 15px; font-weight: 500; color: #7A7870; margin-bottom: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.day-hdr { text-align: center; font-size: 11px; color: #B0ADA5; padding: 4px 0 10px; text-transform: uppercase; }
.day-hdr.sun { color: #EF4444; }
.day-hdr.sat { color: #3B82F6; }
.cal-cell { border-radius: 10px; border: 1px solid #E4E1DA; padding: 8px 6px 6px; display: flex; flex-direction: column; background: #F8F6F1; }
.cal-cell.empty { border-color: transparent; background: transparent; }
.cal-cell.holiday { background: #FFF5F5; border-color: #FECACA; }
.cal-cell.skip { background: #F3F2EE; border-color: #E4E1DA; }
.date-num { font-size: 13px; color: #1A1A18; margin-bottom: 3px; }
.cal-cell.sun .date-num { color: #EF4444; }
.cal-cell.sat .date-num { color: #3B82F6; }
.cal-cell.holiday .date-num { color: #DC2626; font-weight: 700; }
.cal-cell.skip .swim-btn:not(.special):not(.free) { display: none; }

@media (max-width: 900px) {
  :root { --sidebar-width: 200px; }
  .swim-page { padding: 40px 32px 40px 40px; }
}
@media (max-width: 640px) {
  body { display: block; }
  nav { transform: translateX(-100%); width: 240px; }
  nav.open { transform: translateX(0); }
  .topbar { display: flex; }
  .overlay { display: block; }
  main { margin-left: 0; }
  .daily-page { padding: calc(var(--topbar-h) + 20px) 16px 40px; }
  .swim-page { padding: calc(var(--topbar-h) + 16px) 12px 40px; }
  .page-header h2 { font-size: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .summary { grid-template-columns: repeat(4,1fr); }
  .summary .s-card:nth-child(1) { grid-column: span 2; }
  .summary .s-card:nth-child(2) { grid-column: span 2; }
  .summary .s-card:nth-child(3) { grid-column: span 1; }
  .summary .s-card:nth-child(4) { grid-column: span 1; }
  .summary .s-card:nth-child(5) { grid-column: span 1; }
  .summary .s-card:nth-child(6) { grid-column: span 1; }
  .summary .s-card:nth-child(7) { grid-column: span 1; }
  .month-tabs { flex-direction: column; gap: 5px; }
  .month-row { display: flex; gap: 5px; }
  .month-tab { padding: 6px 10px; font-size: 11px; flex: 1; text-align: center; }
  .cal-container { padding: 14px 8px; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 58px; padding: 5px 3px 4px; border-radius: 7px; }
  .date-num { font-size: 11px; }
  .holiday-label, .skip-label { font-size: 7px; }
  .swim-btn { font-size: 14px; padding: 5px 2px; }
  .day-hdr { font-size: 10px; }
}
/* ── Login ── */
.login-bg {
  min-height: 100vh;
  width: 100%;
  background: var(--sidebar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: min(400px, calc(100vw - 40px));
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@media (min-width: 641px) {
  .login-box { width: 400px; }
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.login-logo-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1814;
  letter-spacing: 0.02em;
}

.login-field {
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.login-input {
  width: 100%;
  border: 1px solid #E4E1DA;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Nanum Myeongjo', serif;
  outline: none;
  color: #1a1814;
  background: #faf9f7;
  box-sizing: border-box;
  transition: border-color 0.2s;
  display: block;
}

.login-field {
  width: 100%;
  box-sizing: border-box;
}

.login-input:focus { border-color: var(--accent); background: #fff; }
.login-input::placeholder { color: #B0ADA5; }

.login-error {
  font-size: 12px;
  color: #DC2626;
  min-height: 18px;
  margin-bottom: 4px;
  text-align: center;
}

.login-btn {
  width: 100%;
  background: #1a1814;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-family: 'Nanum Myeongjo', serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.login-btn:hover { background: #2a2520; }
.login-btn:active { background: #000; }

@media (max-width: 640px) {
  .login-box { padding: 40px 24px 32px; }
  .login-logo-title { font-size: 28px; }
}

@media (prefers-color-scheme: dark) {
  .login-box { background: #2a2a2a; }
  .login-logo-title { color: #f0ece6; }
  .login-input { background: #333; border-color: #444; color: #f0ece6; }
  .login-input:focus { border-color: var(--accent); background: #3a3a3a; }
  .login-btn { background: var(--accent); color: #1a1814; }
  .login-btn:hover { background: #d4b87a; }
}
