/* Páginas standalone: auth, checkout, install, wizards */
@import url('brand-tokens.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.serif { font-family: var(--font-serif); }

.auth-wrap, .checkout-wrap, .install-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 179, 0, .08) 0%, transparent 60%);
}
.auth-card, .checkout-card, .install-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.auth-logo, .checkout-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img, .checkout-logo img { height: 44px; margin: 0 auto; }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--text); text-align: center; }
.auth-sub { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.field input::placeholder { color: var(--text-faint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 10px; border: none;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { background: var(--brand-yellow-hover); }
.btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #dc262612; color: var(--red); border: 1px solid #dc262630; }
.alert-success { background: #16a34a12; color: var(--green); border: 1px solid #16a34a30; }
.alert-info { background: var(--brand-blue-dim); color: var(--brand-blue); border: 1px solid rgba(83, 124, 217, .25); }

.auth-footer, .foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer a, .foot a, .row a { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
.row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 12px; }

/* Wizard shell */
.wizard-shell { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); }
.wizard-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.wizard-banner {
  background: var(--gold-dim);
  border-bottom: 1px solid rgba(255, 179, 0, .25);
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text);
}
.wizard-banner a { color: #B8860B; font-weight: 600; text-decoration: none; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; width: 100%; }
@media (max-width: 768px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.eyebrow { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.tt-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border2); }
.tt-price { font-size: 18px; font-weight: 800; color: var(--gold); white-space: nowrap; }

/* Install wizard */
.install-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.dot { flex: 1; height: 4px; border-radius: 2px; background: var(--border2); }
.dot.done { background: var(--gold); }
.dot.active { background: linear-gradient(90deg, var(--gold), var(--border)); }
.info { background: var(--gold-dim); border: 1px solid rgba(255, 179, 0, .3); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #B8860B; margin-bottom: 14px; line-height: 1.75; }
code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; color: var(--text); }
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:480px){.grid2{grid-template-columns:1fr}}

/* Status pages */
.status-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.status-card { max-width: 480px; }
.status-icon { font-size: 56px; margin-bottom: 16px; }
