/* ===========================================================================
   pages.css - page specific styling: auth, dashboard, view, reports, profile
   =========================================================================== */

/* -------------------------------------------------------------------- auth */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-aside {
  background: var(--sidebar);
  color: #e2e8f0;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-aside .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: auto; }
.auth-aside .brand-row .brand-name { font-size: 16px; }

/* The product lockup on the sign-in panel. Sized by height so replacing the
   artwork with a wider or narrower one does not break the layout. */
.product-logo { height: 110px; width: auto; display: block; }

/* The product mark beside the copyright line. Kept small and slightly muted:
   it says which system this is, it is not a banner. */
.footer-mark { border-radius: 4px; opacity: .85; flex: none; }
.auth-aside h2 { color: #fff; font-size: 27px; line-height: 1.3; max-width: 460px; }
.auth-aside p.lead { color: #94a3b8; font-size: 14.5px; margin-top: 14px; max-width: 460px; }

.auth-points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; }
.auth-point .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(20, 184, 166, .16); color: #2dd4bf;
  display: grid; place-items: center; flex: none;
}
.auth-point strong { display: block; color: #f1f5f9; font-size: 13.5px; font-weight: 600; }
.auth-point span { color: #94a3b8; font-size: 12.5px; }

.auth-figure { margin-top: 34px; opacity: .9; }
.auth-foot { margin-top: auto; padding-top: 34px; color: #64748b; font-size: 12px; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}
.auth-card { width: 100%; max-width: 430px; }
.auth-card .mobile-brand { display: none; margin-bottom: 22px; }
.auth-card h1 { font-size: 24px; }
.auth-card .sub { color: var(--text-2); margin: 6px 0 22px; font-size: 13.5px; }
.auth-card form { display: flex; flex-direction: column; gap: 15px; }
.auth-card .form-foot { margin-top: 6px; text-align: center; font-size: 13px; color: var(--text-2); }

.demo-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-2);
}
.demo-note strong { color: var(--text); }
.demo-note code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; background: none; color: var(--text-3); cursor: pointer;
  border-radius: var(--r-sm);
}
.pw-toggle:hover { color: var(--text); background: var(--surface-3); }

.pw-meter { display: flex; gap: 4px; margin-top: 2px; }
.pw-meter i { height: 4px; flex: 1; border-radius: 2px; background: var(--border); }
.pw-meter.s1 i:nth-child(1) { background: var(--danger); }
.pw-meter.s2 i:nth-child(-n+2) { background: var(--warning); }
.pw-meter.s3 i:nth-child(-n+3) { background: var(--info); }
.pw-meter.s4 i { background: var(--success); }

/* --------------------------------------------------------------- dashboard */

.dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.dash-grid > .span-3 { grid-column: span 3; }
.dash-grid > .span-4 { grid-column: span 4; }
.dash-grid > .span-5 { grid-column: span 5; }
.dash-grid > .span-6 { grid-column: span 6; }
.dash-grid > .span-7 { grid-column: span 7; }
.dash-grid > .span-8 { grid-column: span 8; }
.dash-grid > .span-12 { grid-column: span 12; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.quick-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  background: var(--surface);
  font-size: 13.5px;
}
.quick-link:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.quick-link .icon { color: var(--text-3); }
.quick-link:hover .icon { color: var(--accent); }

/* ------------------------------------------------------------- view page */

.view-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}
.view-hero .hero-icon {
  width: 54px; height: 54px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent-soft-text);
  display: grid; place-items: center;
  flex: none;
}
.view-hero .hero-meta { min-width: 0; flex: 1 1 260px; }
.view-hero h2 { font-size: 19px; }
.view-hero .ref { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.view-hero .hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.view-hero .hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 24px; }
.detail-item .k { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.detail-item .v { font-size: 13.5px; margin-top: 3px; word-break: break-word; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.timeline li { position: relative; padding-bottom: 16px; }
.timeline li::before {
  content: ''; position: absolute; left: -22px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.timeline .t { font-size: 13.5px; font-weight: 500; }
.timeline .m { font-size: 12.5px; color: var(--text-2); }

/* ----------------------------------------------------------------- reports */

.report-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.report-card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.report-card .ic {
  width: 40px; height: 40px; border-radius: var(--r);
  background: var(--surface-3); color: var(--text-2);
  display: grid; place-items: center; flex: none;
}
.report-card:hover .ic { background: var(--accent-soft); color: var(--accent-soft-text); }
.report-card strong { display: block; font-size: 14px; }
.report-card p { font-size: 12.5px; color: var(--text-2); margin: 3px 0 0; white-space: normal; }

/* ----------------------------------------------------------------- profile */

.profile-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}
.profile-hero .who h2 { font-size: 20px; }
.profile-hero .who p { color: var(--text-2); font-size: 13.5px; margin: 2px 0 8px; }

/* ------------------------------------------------------------------ error */

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.error-page h1 { margin: 12px 0 8px; }
.error-page p { color: var(--text-2); max-width: 460px; margin: 0 auto 20px; }

/* ---------------------------------------------------------------- settings */

.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 13.5px;
}
.settings-nav a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.settings-nav a.active { background: var(--accent-soft); color: var(--accent-soft-text); font-weight: 600; }

.setting-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row .info { flex: 1 1 auto; min-width: 0; }
.setting-row .info strong { font-size: 13.5px; }
.setting-row .info p { font-size: 12.5px; color: var(--text-2); margin: 2px 0 0; }
