:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --surface-3: #e9eef6;
  --text: #14181f;
  --text-2: #46505e;
  --muted: #7a8698;
  --border: #e3e8ef;
  --border-strong: #d3dbe6;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #e8efff;
  --danger: #d9463a;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 44px rgba(16, 24, 40, 0.16);
  --radius: 12px;
  --radius-lg: 16px;
  --row-h: 52px;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #0d1014;
  --surface: #151a21;
  --surface-2: #1a2029;
  --surface-3: #212935;
  --text: #e7ebf1;
  --text-2: #b6c0cd;
  --muted: #8b97a7;
  --border: #242c37;
  --border-strong: #303a47;
  --accent: #6d95ff;
  --accent-hover: #85a7ff;
  --accent-soft: #1b2740;
  --danger: #ff6b5f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), #7aa2ff);
  color: #fff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
  flex: none;
}

.logo svg {
  width: 19px;
  height: 19px;
}

.title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search {
  position: relative;
  flex: 1;
  max-width: 460px;
  margin-left: 8px;
}

.search-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 44px 0 35px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-family: inherit;
  background: var(--surface);
  pointer-events: none;
}

.top-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* 视图 / 主题按钮的状态图标 */
.ico-list {
  display: none;
}

body[data-view='grid'] #btn-view .ico-grid {
  display: none;
}

body[data-view='grid'] #btn-view .ico-list {
  display: block;
}

[data-theme='dark'] .ico-sun {
  display: none;
}

.ico-moon {
  display: none;
}

[data-theme='dark'] .ico-moon {
  display: block;
}

/* ---------- 路径栏 ---------- */
.subbar {
  position: sticky;
  top: 60px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 50px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.subbar .back {
  width: 32px;
  height: 32px;
  flex: none;
}

.subbar .back:disabled {
  opacity: 0.35;
  cursor: default;
  background: transparent;
  border-color: transparent;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.crumbs::-webkit-scrollbar {
  display: none;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s;
}

.crumb:hover {
  background: var(--surface-2);
  color: var(--text);
}

.crumb.current {
  color: var(--text);
  font-weight: 600;
  cursor: default;
}

.crumb.current:hover {
  background: transparent;
}

.sep {
  color: var(--muted);
  opacity: 0.65;
  font-size: 13px;
  flex: none;
  user-select: none;
}

.subbar-spacer {
  flex: 1;
}

.stat {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 列表 ---------- */
.main {
  flex: 1;
  padding: 18px 20px 110px;
}

.panel {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.list-head,
.row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 120px 178px 104px;
  align-items: center;
}

.list-head {
  height: 44px;
  padding: 0 10px 0 4px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

.th {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.th.sortable {
  cursor: pointer;
}

.th.sortable:hover {
  color: var(--text-2);
}

.th .arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4.5px solid currentColor;
  opacity: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.th.sortable[data-dir='asc'] .arrow,
.th.sortable[data-dir='desc'] .arrow {
  opacity: 0.85;
}

.th.sortable[data-dir='asc'] .arrow {
  transform: rotate(180deg);
}

.list {
  min-height: 120px;
}

.row {
  height: var(--row-h);
  padding: 0 10px 0 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
  cursor: default;
  outline: none;
  transition: background 0.12s;
  user-select: none;
}

.row:last-child {
  border-bottom: none;
}

.row:hover {
  background: var(--surface-2);
}

.row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.row.selected {
  background: var(--accent-soft);
}

.row.selected:hover {
  background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface-3));
}

.cell {
  min-width: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell.check {
  justify-content: center;
  padding: 0;
}

.check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
  flex: none;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.check .box {
  width: 17px;
  height: 17px;
  border: 1.6px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  transition: background 0.12s, border-color 0.12s;
  position: relative;
}

.check input:checked + .box,
.check input:indeterminate + .box {
  background: var(--accent);
  border-color: var(--accent);
}

.check input:checked + .box::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.check input:indeterminate + .box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
}

.check input:focus-visible + .box {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.fico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-2);
  flex: none;
  transition: background 0.12s;
}

.fico svg {
  width: 17px;
  height: 17px;
}

.fico[data-cat='folder'] {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.fico[data-cat='image'] {
  color: #0f9d76;
  background: color-mix(in srgb, #0f9d76 13%, transparent);
}

.fico[data-cat='video'] {
  color: #c2410c;
  background: color-mix(in srgb, #c2410c 13%, transparent);
}

.fico[data-cat='audio'] {
  color: #a855f7;
  background: color-mix(in srgb, #a855f7 14%, transparent);
}

.fico[data-cat='archive'] {
  color: #b45309;
  background: color-mix(in srgb, #b45309 14%, transparent);
}

.fico[data-cat='code'] {
  color: #0284c7;
  background: color-mix(in srgb, #0284c7 13%, transparent);
}

.fico[data-cat='doc'] {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 12%, transparent);
}

.fname {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.row:hover .fname {
  color: var(--text);
}

.ftag {
  flex: none;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface-3);
  letter-spacing: 0.3px;
}

.size,
.time {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act {
  justify-content: flex-end;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.12s;
}

.row:hover .act,
.row.selected .act,
.row:focus-within .act {
  opacity: 1;
}

.act .icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.act .icon-btn svg {
  width: 16.5px;
  height: 16.5px;
}

/* ---------- 网格视图 ---------- */
body[data-view='grid'] .list-head {
  display: none;
}

body[data-view='grid'] .list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
  align-items: stretch;
}

body[data-view='grid'] .row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
  min-height: 152px;
  padding: 16px 14px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  gap: 8px;
  overflow: hidden;
}

body[data-view='grid'] .row:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

body[data-view='grid'] .row.selected {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

body[data-view='grid'] .cell.check {
  position: absolute;
  top: 6px;
  right: 4px;
  z-index: 2;
}

body[data-view='grid'] .cell.name {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 0;
  flex: 1;
  margin-top: 6px;
}

body[data-view='grid'] .fico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

body[data-view='grid'] .fico svg {
  width: 23px;
  height: 23px;
}

body[data-view='grid'] .fname {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  font-size: 13.5px;
  line-height: 1.4;
}

body[data-view='grid'] .ftag {
  display: none;
}

body[data-view='grid'] .cell.size,
body[data-view='grid'] .cell.time {
  display: none;
}

body[data-view='grid'] .act {
  position: absolute;
  right: 8px;
  bottom: 8px;
  opacity: 0;
}

body[data-view='grid'] .row:hover .act,
body[data-view='grid'] .row.selected .act {
  opacity: 1;
}

/* ---------- 骨架 / 空态 / 错误 ---------- */
.skeleton {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 120px 178px 104px;
  align-items: center;
  height: var(--row-h);
  padding: 0 10px 0 4px;
  border-bottom: 1px solid var(--border);
}

.sk {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 20px;
  text-align: center;
  color: var(--muted);
}

.empty .big {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
}

.empty .big svg {
  width: 26px;
  height: 26px;
}

.empty h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.empty p {
  margin: 0;
  font-size: 13px;
  max-width: 460px;
  line-height: 1.7;
  word-break: break-word;
}

.empty code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, color 0.15s;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:active {
  transform: scale(0.975);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

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

.btn.ghost:hover {
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface-3) 60%, transparent);
}

/* ---------- 选中工具条 ---------- */
.selbar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: rise 0.18s ease-out;
  max-width: calc(100vw - 32px);
}

.selbar[hidden] {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.selbar-info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  min-width: 110px;
}

.sel-count {
  font-size: 13.5px;
  font-weight: 600;
}

.sel-size {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.selbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.18s ease-out;
  max-width: min(520px, 90vw);
}

.toast.err {
  background: var(--danger);
  color: #fff;
}

.toast svg {
  width: 15px;
  height: 15px;
  flex: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .list-head,
  .row,
  .skeleton {
    grid-template-columns: 44px minmax(0, 1fr) 100px 96px;
  }
  .time-col,
  .cell.time {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 10px;
    padding: 0 12px;
  }
  .title {
    display: none;
  }
  .search {
    margin-left: 0;
  }
  .search-kbd {
    display: none;
  }
  .search input {
    padding-right: 12px;
  }
  .subbar {
    padding: 0 10px;
  }
  .main {
    padding: 12px 10px 120px;
  }
  .list-head,
  .row {
    grid-template-columns: 42px minmax(0, 1fr) 92px;
  }
  .size-col,
  .cell.size {
    display: none;
  }
  .panel {
    border-radius: 12px;
  }
  .list-head {
    height: 40px;
  }
  .stat {
    display: none;
  }
  .selbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    transform: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    animation: none;
  }
  .selbar-info {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    border-right: none;
    padding-right: 0;
  }
  .selbar-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .selbar-actions .primary {
    justify-content: center;
  }
  .selbar-actions .ghost {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .act {
    opacity: 1;
  }
  .toasts {
    bottom: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 应用外壳 / 登录 ---------- */
.app {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app[hidden] {
  display: none;
}

.login {
  flex: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
}

.login[hidden] {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 368px;
  padding: 30px 26px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--accent), #7aa2ff);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent);
}

.login-logo svg {
  width: 27px;
  height: 27px;
}

.login-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.login-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.field {
  position: relative;
  display: block;
  margin: 22px 0 0;
  text-align: left;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 14px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.peek {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.peek:hover {
  background: var(--surface-3);
  color: var(--text-2);
}

.peek svg {
  width: 18px;
  height: 18px;
}

.peek .eye-off {
  display: none;
}

.peek.on .eye-on {
  display: none;
}

.peek.on .eye-off {
  display: block;
}

.login-error {
  margin: 10px 2px 0;
  color: var(--danger);
  font-size: 12.5px;
  text-align: left;
  line-height: 1.5;
}

.login-btn {
  width: 100%;
  height: 44px;
  justify-content: center;
  margin-top: 14px;
  font-size: 14.5px;
}

.login-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.login-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .login-card {
    padding: 26px 20px 20px;
  }
}
