@import url('/css/style.css');

body.panel-body { min-height: 100vh; background: var(--bg); }

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

@media (min-width: 900px) {
  .login-page { grid-template-columns: 1fr 1fr; }
}

.login-brand-panel {
  display: none;
  background: var(--gradient-brand);
  color: #fff;
  padding: 3rem;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 900px) {
  .login-brand-panel { display: flex; }
}

.login-brand-panel h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 2rem 0 1rem;
  max-width: 18ch;
}

.login-brand-panel p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 28rem;
  margin: 0;
}

.login-brand-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.login-brand-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.login-brand-features li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
}

.login-form-inner { width: 100%; max-width: 400px; margin: 0 auto; }

.login-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.login-form-brand a {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.login-form-brand p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }
.login-form-panel h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.login-form-panel .card { margin-bottom: 0; }
.login-form-panel .btn-primary { width: 100%; }
.login-form-panel .btn-ghost { width: 100%; margin-top: 0.5rem; }

.prose article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 52rem;
}

.prose article h1 { font-size: 1.35rem; margin: 0 0 1rem; }
.prose article h2 { font-size: 1.1rem; margin: 1.75rem 0 0.75rem; }
.prose article h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.prose article p { margin: 0 0 0.85rem; line-height: 1.65; color: var(--text-secondary); }
.prose article ul, .prose article ol { margin: 0 0 1rem; padding-left: 1.35rem; color: var(--text-secondary); }
.prose article li { margin: 0.35rem 0; }
.prose article code {
  font-size: 0.85em;
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.prose article pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.prose article pre code { background: none; border: none; padding: 0; }
.prose article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.875rem;
}
.prose article th, .prose article td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

/* Settings field help */
.field-help {
  margin: 0.4rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 400;
}
.field-help strong { color: var(--text); font-weight: 600; }
.field-help code {
  font-size: 0.8em;
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.field-help a { color: var(--accent, #2563eb); }
.field-help ul, .field-help ol { margin: 0.35rem 0 0; padding-left: 1.15rem; }
.field-help li { margin: 0.2rem 0; }

.setup-guide {
  margin-bottom: 1.25rem;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 10px);
  overflow: hidden;
}
.setup-guide summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 1rem;
  background: var(--surface);
  list-style: none;
}
.setup-guide summary::-webkit-details-marker { display: none; }
.setup-guide summary::before { content: "▸ "; color: var(--muted); }
.setup-guide[open] summary::before { content: "▾ "; }
.setup-guide .setup-guide-body {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.setup-guide ol { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.setup-guide li { margin: 0.35rem 0; }

.provider-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin: 0.5rem 0 0;
}
.provider-table th, .provider-table td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  text-align: left;
}
.provider-table th { background: var(--surface); font-weight: 600; }
.provider-table code { font-size: 0.85em; }

.settings-tip-banner {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg, 10px);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
  font-size: 0.875rem;
  line-height: 1.55;
}
.settings-tip-banner a { font-weight: 600; }

.prose article th { background: var(--bg); font-weight: 600; }
.prose article strong { color: var(--text); }

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.wizard-steps li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}
.wizard-steps li.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.wizard-panel.hidden { display: none; }
.wizard-panel h2 { font-size: 1.05rem; margin: 0 0 0.75rem; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.plan-card { cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plan-card input:checked + .plan-card-inner {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.plan-duration { font-size: 0.75rem; color: var(--muted); }
.plan-price { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.plan-price-old { text-decoration: line-through; color: var(--muted); font-size: 0.85rem; }
.plan-badge-sale {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #16a34a;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  width: fit-content;
}
.bank-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.bank-tab {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.bank-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.bank-panel.hidden { display: none; }
.bank-dl { display: grid; grid-template-columns: 10rem 1fr; gap: 0.35rem 1rem; font-size: 0.9rem; margin: 0; }
.bank-dl dt { color: var(--muted); font-weight: 600; }
.bank-dl dd { margin: 0; }
.invoice-card .invoice-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
tr.row-highlight { background: rgba(37, 99, 235, 0.06); }
.badge-reported { background: #f59e0b; color: #fff; }
