/* ==========================================================================
   tube.css — Sistema de diseño de VideoTag Tube (estilo YouTube + USIL/GICC)
   --------------------------------------------------------------------------
   Tokens y clases COMPARTIDAS entre index2 (home) y watch. Los nombres de
   variables replican los de style.css para que ambas páginas los usen igual.
   Tema por defecto: oscuro (#0f0f0f, como YouTube). La cabecera es SIEMPRE
   azul institucional en ambos temas.
   ========================================================================== */

:root {
  /* Azul institucional (del logo GICC/USIL) — constante en ambos temas */
  --brand: #2a55a5;
  --brand-dark: #1c3a78;
  --brand-soft: rgba(42, 85, 165, .14);

  /* Tema CLARO (estilo YouTube light) */
  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --surface-3: #e5e5e5;
  --border: #e3e3e3;
  --text: #0f0f0f;
  --text-dim: #606060;
  --text-faint: #6b6b6b;   /* ≥4,5:1 sobre --bg/--surface (WCAG AA) */

  --accent: var(--brand);
  --accent-2: #3f6fc4;
  --accent-soft: var(--brand-soft);
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .07);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .2);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 56px;
}

[data-theme="dark"] {
  /* Tema OSCURO (estilo YouTube dark) */
  --bg: #0f0f0f;
  --surface: #212121;
  --surface-2: #272727;
  --surface-3: #3d3d3d;
  --border: #303030;
  --text: #f1f1f1;
  --text-dim: #aaaaaa;
  --text-faint: #9a9a9a;   /* ≥4,5:1 sobre --bg/--surface (WCAG AA) */

  /* Azul aclarado para que contraste sobre fondo oscuro */
  --accent: #5b8def;
  --accent-2: #82aaff;
  --accent-soft: rgba(91, 141, 239, .2);
  --ok: #2ba640;
  --warn: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------------- Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Roboto", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
::selection { background: var(--accent-soft); }

/* ------------------------------------------------- Cabecera institucional */
/* SIEMPRE azul USIL, en tema claro y oscuro. */
.tube-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.tube-brand {
  display: flex; align-items: center; gap: 11px;
  color: #fff; min-width: 0; transition: opacity .15s;
}
.tube-brand:hover { opacity: .92; }
.tube-brand img { height: 34px; width: auto; border-radius: 6px; display: block; }
.tube-brand-txt { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.tube-brand .t1 { font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.tube-brand .t2 {
  font-size: .68rem; font-weight: 400; opacity: .88;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tube-header .grow { min-width: 8px; }
.tube-header .icon-btn {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}
.tube-header .icon-btn:hover { background: rgba(255, 255, 255, .24); }
/* Anillo de foco blanco: el acento azul se confunde con la cabecera azul. */
.tube-header .icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tube-header .user-chip {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.tube-header .user-chip .uc-role {
  font-size: .68rem; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .18);
}
@media (max-width: 760px) { .tube-brand .t2 { display: none; } }
@media (max-width: 560px) {
  .tube-header .user-chip .uc-name { display: none; }
  .tube-header { padding: 0 10px; gap: 7px; }
}

/* ------------------------------------------------------------------ Layout */
.container { max-width: 1500px; margin: 0 auto; padding: 22px 24px 60px; }
.container-wide { max-width: 1720px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-head .sub { color: var(--text-dim); font-size: .95rem; }
@media (max-width: 640px) { .container { padding: 14px 12px 44px; } }

/* ------------------------------------------------------------------- Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.card.pad-lg { padding: 26px; }

/* ------------------------------------------------------------------ Botones */
/* Píldoras redondeadas, como YouTube. */
.btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-weight: 500;
  font-size: .9rem; font-family: inherit; line-height: 1.25;
  transition: background .15s, box-shadow .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary {
  background: var(--accent); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-soft); font-weight: 600;
}
.btn.primary:hover { background: var(--accent-2); }
.btn.ok { background: var(--ok); color: #fff; border-color: transparent; font-weight: 600; }
.btn.ok:hover { filter: brightness(1.08); }
.btn.danger {
  background: transparent; color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 6px 12px; font-size: .82rem; }
.btn.block { width: 100%; justify-content: center; }
.btn.active { background: var(--text); color: var(--bg); border-color: transparent; }
.btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); cursor: pointer;
  display: inline-grid; place-items: center; font-size: 1.05rem;
  transition: background .15s, transform .15s; flex-shrink: 0; font-family: inherit;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.sm { width: 30px; height: 30px; font-size: .95rem; }

/* ------------------------------------------------------------------ Inputs */
.input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: inherit; font-size: .92rem; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface);
}
.input::placeholder, textarea::placeholder { color: var(--text-faint); }
label.field { display: block; margin-bottom: 12px; }
label.field > span {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text-dim); margin-bottom: 5px;
}
input[type="color"] {
  width: 42px; height: 42px; padding: 3px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer;
}
input[type="file"].input { padding: 8px 10px; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.rate-select { width: auto; padding: 6px 8px; }
.time-display {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem;
  padding: 6px 10px; background: var(--surface-2); border-radius: 8px;
  border: 1px solid var(--border); white-space: nowrap;
}

/* ---------------------------------------------------------- Filas y utiles */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.tight { gap: 6px; }
.between { justify-content: space-between; } .center { align-items: center; }
.wrap { flex-wrap: wrap; } .col { flex-direction: column; } .gap { gap: 10px; }
.grow { flex: 1; }
.hidden { display: none !important; }
.muted { color: var(--text-dim); } .faint { color: var(--text-faint); }
.small { font-size: .82rem; } .tiny { font-size: .74rem; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; } .mt-lg { margin-top: 24px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.tag-key {
  font-family: inherit; font-size: .72rem; padding: 1px 6px; border-radius: 5px;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-dim); font-weight: 600;
}
.kbd-help { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: .82rem; }
.help-hint {
  font-size: .82rem; color: var(--text-dim); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 10px; padding: 9px 12px; line-height: 1.45;
}
.gauge { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.gauge > div {
  height: 100%; border-radius: 4px; transition: width .2s;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ------------------------------------------------------------------ Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: var(--surface-3); color: var(--text-dim); white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pending { color: var(--text-dim); } /* legible sobre --surface-3 en oscuro */
.badge.in_progress { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge.complete { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.badge.processing { color: var(--info); background: color-mix(in srgb, var(--info) 15%, transparent); }
.badge.error { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.badge .spin { width: 11px; height: 11px; border-width: 2px; }

/* Chips de etiqueta (fondo coloreado inline desde JS) */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff;
  background: var(--accent); max-width: 100%;
}
.chip .x { cursor: pointer; opacity: .8; } .chip .x:hover { opacity: 1; }
.chip.sm-chip { font-size: .74rem; padding: 3px 9px; }

/* ------------------------------------------------------------------ Avatar */
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent-2));
  color: #fff; display: inline-grid; place-items: center;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
}
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .86rem; font-weight: 500; min-width: 0;
}

/* --------------------------------------------------------- Selector etiqueta */
.label-picker {
  max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
}
.label-opt {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px;
  border-radius: 8px; cursor: pointer; transition: background .1s;
}
.label-opt:hover { background: var(--surface-2); }
.label-opt.sel { background: var(--accent-soft); }
.label-opt .swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.label-opt .grp { font-size: .72rem; color: var(--text-faint); margin-left: auto; }

/* ------------------------------------------------------- Lista de intervalos */
.seg-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.seg-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
  transition: border-color .12s;
}
.seg-item:hover { border-color: var(--accent); }
.seg-item .swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.seg-item .info { flex: 1; min-width: 0; }
.seg-item .info .lbl { font-weight: 600; font-size: .88rem; }
.seg-item .info .tm { font-size: .74rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.seg-item .acts { display: flex; gap: 4px; }

/* -------------------------------------------- Reproductor y línea de tiempo
   (base compartida; watch.css puede refinarla) */
.player-wrap {
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.player-wrap video { width: 100%; display: block; max-height: 68vh; background: #000; }
.transport {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); flex-wrap: wrap; margin-top: 10px;
}
.timeline {
  position: relative; height: 46px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  overflow: hidden; user-select: none;
  /* En táctil, sin esto el navegador convierte el arrastre (manijas,
     selección de rango) en pan de página y emite pointercancel. */
  touch-action: none;
}
.timeline.tall { height: auto; min-height: 46px; }
.timeline .playhead {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: var(--danger); z-index: 4; pointer-events: none;
  box-shadow: 0 0 6px var(--danger);
}
.timeline .playhead::before {
  content: ''; position: absolute; top: -1px; left: -4px;
  border: 5px solid transparent; border-top-color: var(--danger);
}
.timeline .sel-region {
  position: absolute; top: 0; bottom: 0; background: var(--accent-soft);
  border-left: 2px solid var(--accent); border-right: 2px solid var(--accent);
  z-index: 3; pointer-events: none;
}
.track-label {
  font-size: .78rem; color: var(--text-dim); font-weight: 600;
  display: flex; align-items: center; gap: 6px; margin: 6px 0 3px;
}
.ruler { position: relative; height: 18px; margin-bottom: 2px; }
.ruler .tick {
  position: absolute; top: 0; font-size: .66rem; color: var(--text-faint);
  border-left: 1px solid var(--border); padding-left: 3px; height: 100%;
}
.iv-block {
  position: absolute; height: 30px; border-radius: 6px; opacity: .95;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); min-width: 6px;
  cursor: pointer; display: flex; align-items: center; overflow: hidden;
}
.iv-block.sel { outline: 2px solid var(--text); outline-offset: 1px; z-index: 5; }
.iv-block .iv-text {
  font-size: .66rem; color: #fff; padding: 0 5px; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5); font-weight: 600; pointer-events: none;
}
.iv-block .handle {
  position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize;
  background: rgba(255, 255, 255, .35);
}
.iv-block .handle.l { left: 0; border-radius: 6px 0 0 6px; }
.iv-block .handle.r { right: 0; border-radius: 0 6px 6px 0; }
.iv-block .handle:hover { background: rgba(255, 255, 255, .7); }
.sugg-block {
  position: absolute; top: 3px; height: 20px; border-radius: 5px;
  border: 1.5px dashed var(--accent); background: var(--accent-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sugg-block:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.sugg-block .t { font-size: .6rem; color: var(--accent); font-weight: 700; }

/* ------------------------------------------------------------------- Modal */
.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px); display: none; place-items: center;
  z-index: 100; padding: 20px;
}
.modal-back.open { display: grid; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px; padding: 22px;
  max-height: 92vh; overflow-y: auto;
  animation: modalIn .18s ease;
}
.modal.wide { max-width: 720px; }
.modal h3 { margin-bottom: 14px; }
@keyframes modalIn { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------- Toasts */
.toasts {
  position: fixed; bottom: 20px; right: 20px; display: flex;
  flex-direction: column; gap: 8px; z-index: 200; max-width: min(92vw, 380px);
}
.toast {
  padding: 12px 16px; border-radius: 11px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: .88rem; font-weight: 500; min-width: 220px;
  display: flex; align-items: center; gap: 9px; animation: slideIn .25s ease;
}
.toast.ok { border-left: 3px solid var(--ok); }
.toast.err { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------- Estado vacío */
.empty { text-align: center; padding: 54px 20px; color: var(--text-dim); }
.empty .ic { font-size: 2.8rem; opacity: .55; margin-bottom: 10px; }
.empty h3 { color: var(--text); }

/* ------------------------------------------------------------------ Spinner */
.spin {
  width: 16px; height: 16px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: rot .7s linear infinite; display: inline-block; flex-shrink: 0;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ==========================================================================
   HOME — parrilla de videos estilo YouTube
   ========================================================================== */
.home-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 14px; }
.home-head h1 { margin: 0; }
.search-box { position: relative; flex: 1; min-width: 180px; max-width: 430px; }
.search-box .search-ic {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  opacity: .6; font-size: .88rem; pointer-events: none;
}
.search-box .input { border-radius: 999px; padding-left: 37px; }

.stat-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: .83rem;
}
.stat-chip b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px 18px; margin-top: 18px;
}
@media (max-width: 430px) { .video-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Tarjeta de video: sin borde ni fondo, como YouTube */
.video-card { position: relative; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.video-card .thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000;
}
.video-card .thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease; z-index: 1;
}
.video-card:hover .thumb img { transform: scale(1.045); }
.thumb-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.2rem; color: rgba(255, 255, 255, .78);
  background: linear-gradient(135deg, var(--brand-dark), #10234d 55%, #0a1530);
}
.video-card .dur {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(0, 0, 0, .8); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 2px 6px; border-radius: 5px; font-variant-numeric: tabular-nums;
}
.thumb-overlay {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: .85rem;
}
.thumb-overlay.err { color: #ffb4b4; }
.vc-body { display: flex; gap: 6px; position: relative; padding: 0 2px; align-items: flex-start; }
.vc-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--text); font-weight: 600; font-size: .95rem;
  line-height: 1.35; word-break: break-word;
}
a.vc-title:hover { color: var(--text); }
.vc-meta { color: var(--text-dim); font-size: .8rem; margin-top: 3px; }
.vc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.vc-menu {
  border-color: transparent; background: transparent; color: var(--text-dim);
  opacity: .55; transition: opacity .15s, background .15s;
}
.video-card:hover .vc-menu, .vc-menu.open { opacity: 1; }
.vc-menu:hover { background: var(--surface-2); }
@media (hover: none) { .vc-menu { opacity: 1; } }
.vc-pop {
  position: absolute; right: 0; top: 34px; z-index: 20; min-width: 170px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px 0;
  overflow: hidden; animation: modalIn .14s ease;
}
.vc-pop button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 14px;
  background: none; border: none; color: var(--text); font: inherit;
  font-size: .88rem; cursor: pointer; text-align: left;
}
.vc-pop button:hover { background: var(--surface-2); }
.vc-pop button.danger { color: var(--danger); }

/* ==========================================================================
   LOGIN
   ========================================================================== */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: #666;   /* fondo de la página: gris */
}
/* Formulario (tarjeta): fondo negro, con texto legible en cualquier tema. */
.login-card {
  width: 100%; max-width: 440px; text-align: center;
  background: #000; border: 1px solid #333; color: #f1f1f1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.login-card .login-title { color: #ffffff; }
.login-card .muted, .login-card .faint { color: #b8b8b8; }
.login-card .field span { color: #c8c8c8; }
.login-card .input { background: #1a1a1a; border-color: #333; color: #f1f1f1; }
.login-card .input:focus { border-color: var(--accent); }
.login-logo {
  width: 230px; max-width: 85%; border-radius: 12px; display: block;
  margin: 4px auto 18px; box-shadow: var(--shadow-lg);
}
.login-title { font-size: 1.06rem; line-height: 1.4; }
