/* 求职投递记录 —— 移动优先样式表 */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --text: #101828;
  --text-2: #5b6478;
  --text-3: #98a2b3;
  --border: #e5e7ef;
  --brand: #2563eb;
  --brand-weak: #e8efff;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #171c24;
    --surface-2: #1f2631;
    --text: #e9edf5;
    --text-2: #9aa4b6;
    --text-3: #6b7484;
    --border: #262d38;
    --brand: #5b8cff;
    --brand-weak: #1b2740;
    --danger: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 兜底：作者样式（如 .sheet{display:flex}）会覆盖浏览器默认的 [hidden]{display:none}，
   这里显式声明，保证 JS 里 element.hidden = true 一定能真正隐藏 */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
  /* 16px 可避免 iOS Safari 聚焦时自动放大页面 */
  font-size: 16px;
}

/* ------------------------------- 顶部区 ------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(var(--safe-top) + 12px) 14px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.stats {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.stat b {
  color: var(--text);
  font-size: 14px;
}

.stat.is-due {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: var(--danger);
}

.stat.is-due b {
  color: var(--danger);
}

.stat.is-brand b {
  color: var(--brand);
}

.icon-btn {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.search-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.search-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
}

.search-row input:focus {
  border-color: var(--brand);
}

.search-row select {
  flex: none;
  padding: 9px 8px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
}

.tab.is-active {
  background: var(--brand-weak);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}

/* ------------------------------- 列表卡片 ------------------------------- */

.list {
  padding: 12px 14px calc(96px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.card {
  position: relative;
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  width: 100%;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tone, var(--text-3));
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-company {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-position {
  margin: 3px 0 0;
  color: var(--text-2);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12.5px;
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* 兜底：渠道可能是长链接，避免 flex 子项被内容撑破卡片宽度 */
.card-meta > span:not(.dot) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-due {
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
}

.card-due.is-overdue {
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  color: var(--danger);
}

.card-due.is-today {
  background: color-mix(in srgb, #d97706 14%, var(--surface));
  color: #b45309;
}

/* 状态 / 优先级小标签 */
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--tone-weak, var(--surface-2));
  color: var(--tone, var(--text-2));
}

.priority {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid currentColor;
}

.priority.p-high {
  color: var(--danger);
}

.priority.p-medium {
  color: #b45309;
}

.priority.p-low {
  color: var(--text-3);
}

/* 各状态配色（与后端 STATUS_META.tone 一一对应） */
.tone-neutral { --tone: #64748b; --tone-weak: color-mix(in srgb, #64748b 14%, var(--surface)); }
.tone-info { --tone: #2563eb; --tone-weak: color-mix(in srgb, #2563eb 14%, var(--surface)); }
.tone-warn { --tone: #d97706; --tone-weak: color-mix(in srgb, #d97706 14%, var(--surface)); }
.tone-purple { --tone: #7c3aed; --tone-weak: color-mix(in srgb, #7c3aed 14%, var(--surface)); }
.tone-success { --tone: #15803d; --tone-weak: color-mix(in srgb, #15803d 14%, var(--surface)); }
.tone-danger { --tone: #dc2626; --tone-weak: color-mix(in srgb, #dc2626 14%, var(--surface)); }
.tone-muted { --tone: #94a3b8; --tone-weak: color-mix(in srgb, #94a3b8 18%, var(--surface)); }

.empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-3);
}

.empty-title {
  margin: 0 0 6px;
  color: var(--text-2);
  font-size: 16px;
}

.empty-tip {
  margin: 0;
  font-size: 13.5px;
}

/* ------------------------------- 视图切换 / 月份导航 ------------------------------- */

.view-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.segmented {
  display: inline-flex;
  flex: none;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.seg-btn {
  padding: 5px 13px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  font-size: 13.5px;
}

.seg-btn.is-active {
  background: var(--surface);
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.cal-toolbar .icon-btn {
  font-size: 18px;
}

.month-label {
  padding: 5px 10px;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.month-label:hover {
  background: var(--surface-2);
}

/* ------------------------------- 日历视图 ------------------------------- */

.calendar-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px calc(96px + var(--safe-bottom));
  max-width: 1320px;
  margin: 0 auto;
}

@media (min-width: 1000px) {
  .calendar-view {
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: start;
  }
}

.cal-panel {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.cal-weekdays {
  margin-bottom: 6px;
}

.cal-weekdays span {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
}

.cal-weekdays span.is-weekend {
  color: var(--danger);
  opacity: 0.75;
}

.cal-day {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 88px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  /* 整格可点：点空白处 = 新建当天投递 */
  cursor: pointer;
}

.cal-day.is-outside {
  background: transparent;
  opacity: 0.45;
}

.cal-day.is-today {
  border-color: var(--brand);
}

.cal-day.is-selected {
  border-color: var(--brand);
  background: var(--brand-weak);
}

.cal-dayhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.cal-daynum {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 22px;
  text-align: center;
}

.cal-daynum:hover {
  background: var(--surface-2);
}

.cal-day.is-today .cal-daynum {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.cal-day.is-selected .cal-daynum {
  color: var(--brand);
  font-weight: 600;
}

.cal-daycount {
  color: var(--text-3);
  font-size: 10.5px;
  white-space: nowrap;
}

/* 宽屏格子够宽，显示成「3 条」；窄屏只留数字，避免挤到日期数字旁边 */
.cal-daycount::after {
  content: " 条";
}

.cal-evs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cal-ev {
  display: block;
  width: 100%;
  padding: 2px 5px;
  border: none;
  border-left: 2px solid var(--tone, var(--text-3));
  border-radius: 5px;
  background: var(--tone-weak, var(--surface-2));
  color: var(--tone, var(--text-2));
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-ev.is-selected {
  box-shadow: 0 0 0 2px var(--tone);
  font-weight: 600;
}

.cal-more {
  padding: 1px 3px;
  border: none;
  background: none;
  color: var(--text-3);
  font-size: 10.5px;
  text-align: left;
}

.cal-hint {
  margin: 8px 2px 0;
  color: var(--text-3);
  font-size: 12px;
}

.cal-hint b {
  color: var(--text-2);
  font-weight: 600;
}

/* 右侧当月列表 */
.cal-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 1000px) {
  .cal-side {
    position: sticky;
    top: calc(var(--topbar-h, 158px) + 10px);
    max-height: calc(100vh - var(--topbar-h, 158px) - 30px);
  }

  /* 给悬浮 ＋ 按钮留位置，避免压住最后一张卡片的操作按钮 */
  .cal-side .side-list {
    padding-bottom: 72px;
  }
}

.side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.side-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.side-count {
  flex: none;
  color: var(--text-3);
  font-size: 12.5px;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 关键：flex 列容器 + max-height 时子项默认会被压缩，导致卡片内容被裁掉 */
.side-list > * {
  flex: none;
}

.side-card {
  scroll-margin-top: calc(var(--topbar-h, 158px) + 14px);
  cursor: pointer;
}

.side-card:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

/* 命中的那一条：加粗高亮 */
.side-card.is-selected {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  box-shadow: 0 0 0 2px var(--brand-weak), var(--shadow);
}

/* 命中的那一天：同一天的所有记录一起轻微高亮 */
.side-card.is-day {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

.side-rows {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  margin: 7px 0 0;
  color: var(--text-2);
  font-size: 12.5px;
}

.side-rows dt {
  color: var(--text-3);
  white-space: nowrap;
}

.side-rows dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.side-rows dd a {
  color: var(--brand);
}

.side-notes {
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.side-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.side-actions .link-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 13px;
}

.side-empty {
  padding: 30px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
}

.side-empty b {
  display: block;
  margin-bottom: 4px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
}

/* 窄屏（手机）：格子只有 ~45px 宽，小条改为两行省略，尽量把公司名显示完整 */
@media (max-width: 700px) {
  .cal-panel {
    padding: 8px;
  }

  .cal-grid,
  .cal-weekdays {
    gap: 3px;
  }

  .cal-day {
    min-height: 84px;
    padding: 4px;
    border-radius: 8px;
  }

  .cal-daynum {
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
  }

  .cal-ev {
    display: -webkit-box;
    padding: 2px 4px;
    font-size: 10.5px;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .cal-hint {
    font-size: 11.5px;
  }

  .cal-daycount::after {
    content: "";
  }
}


/* ------------------------------- 悬浮按钮 / 弹层 ------------------------------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--safe-bottom));
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
  z-index: 30;
}

.fab:active {
  transform: scale(0.94);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.42);
  z-index: 40;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22);
  animation: sheet-in 0.22s ease-out;
}

@keyframes sheet-in {
  from {
    transform: translateY(14px);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 700px) {
  .sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 620px;
    bottom: 24px;
    border-radius: 18px;
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.sheet-head h2 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-btn {
  flex: none;
  padding: 4px 2px;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 15px;
}

.link-btn.is-strong {
  color: var(--brand);
  font-weight: 600;
}

.sheet-body {
  padding: 14px;
  padding-bottom: calc(18px + var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-sm .sheet-body {
  padding: 8px;
}

/* ------------------------------- 表单 ------------------------------- */

.field {
  display: block;
  margin-bottom: 12px;
}

.field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-2);
  font-size: 13px;
}

.field em {
  color: var(--danger);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: var(--surface);
}

.more {
  margin-top: 4px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.more summary {
  color: var(--brand);
  font-size: 13.5px;
  margin-bottom: 10px;
}

/* ------------------------------- 详情弹层 ------------------------------- */

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-sub {
  margin: 4px 0 12px;
  color: var(--text-2);
  font-size: 13.5px;
}

.status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.status-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
}

.status-btn.is-current {
  background: var(--tone-weak);
  border-color: var(--tone);
  color: var(--tone);
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px 10px;
  margin: 0 0 16px;
  font-size: 14px;
}

.info-grid dt {
  color: var(--text-3);
  font-size: 13px;
}

.info-grid dd {
  margin: 0;
  word-break: break-word;
}

.info-grid dd a {
  color: var(--brand);
}

.section-title {
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 0 0 16px;
  padding: 0 0 0 4px;
}

.timeline li {
  position: relative;
  padding: 0 0 12px 16px;
  border-left: 1.5px solid var(--border);
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone, var(--text-3));
}

.timeline-time {
  color: var(--text-3);
  font-size: 12px;
}

.timeline-text {
  font-size: 14px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  flex: 1;
  padding: 11px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
}

.btn.is-danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
}

.menu-item {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 11px;
  background: none;
  text-align: left;
  font-size: 15px;
  color: var(--text);
}

.menu-item:active {
  background: var(--surface-2);
}

.menu-item.is-danger {
  color: var(--danger);
}

/* ------------------------------- 提示 ------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 60;
  max-width: 84vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
}

/* ------------------------------- 登录页 ------------------------------- */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 30px 22px 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.login-logo {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--brand-weak);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 20px;
}

.login-tip {
  margin: 0 0 20px;
  color: var(--text-3);
  font-size: 13px;
}

.login-card input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  outline: none;
}

.login-card input:focus {
  border-color: var(--brand);
  background: var(--surface);
}

.login-card button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.login-card button:disabled {
  opacity: 0.6;
}

.login-error {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
}



