/* Natipost — Auth pages shared stylesheet
   Used by: login.html, signup.html, setup.html, setup_complete.html
   Matches landing page dark gradient aesthetic. No BD flag colour combinations.
*/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Body / Background ─────────────────────────────────────── */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #0a0a1a 0%, #0d1117 50%, #0a0f1a 100%);
  background-attachment: fixed;
  background-image:
    linear-gradient(rgba(0, 106, 78, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 106, 78, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, #0a0a1a 0%, #0d1117 50%, #0a0f1a 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  color: #eee;
  min-height: 100vh;
}

/* ── Nav / Header ──────────────────────────────────────────── */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-nav img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.auth-nav .brand {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.3px;
}

/* ── Glassmorphism card ────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
}

/* ── Form elements ─────────────────────────────────────────── */
label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.form-row {
  margin-bottom: 16px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eee;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: #006a4e;
}

select option {
  background: #0d1117;
}

.hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 5px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 12px;
  background: #006a4e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-primary:hover {
  background: #00875f;
}

/* ── Error / alert messages ────────────────────────────────── */
.alert-error {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(0, 106, 78, 0.12);
  color: #4ade80;
  border: 1px solid rgba(0, 106, 78, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── Tab toggle ────────────────────────────────────────────── */
.tab-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  margin-top: 0;
}

.tab-btn.active {
  background: #006a4e;
  color: white;
}

.login-section { display: none; }
.login-section.active { display: block; }

/* ── Footer ────────────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

.auth-footer a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.auth-footer a:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Secondary link ────────────────────────────────────────── */
.secondary-link {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.secondary-link a {
  color: #006a4e;
  text-decoration: none;
}

.secondary-link a:hover {
  text-decoration: underline;
}

/* ── Progress steps ────────────────────────────────────────── */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.step-dot.active {
  background: #6366F1;
  border-color: #6366F1;
  color: white;
}

.step-dot.done {
  background: rgba(0, 106, 78, 0.3);
  border-color: #006a4e;
  color: #4ade80;
}

.step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  align-self: center;
}

.step-line.done {
  background: #006a4e;
}

/* ── Pricing cards ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 520px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.price-card:hover { border-color: #006a4e; }
.price-card.selected { border-color: #006a4e; background: rgba(0, 106, 78, 0.08); }

/* Tier accent colours — brand not flag */
.price-card.tier-starter.selected,
.price-card.tier-starter:hover  { border-color: #006a4e; }
.price-card.tier-growth.selected,
.price-card.tier-growth:hover   { border-color: #6366F1; }
.price-card.tier-agency.selected,
.price-card.tier-agency:hover   { border-color: #F59E0B; }

.price-card.tier-growth  { border-color: rgba(99, 102, 241, 0.3); }
.price-card.tier-agency  { border-color: rgba(245, 158, 11, 0.3); }

.tier-name {
  font-size: 12px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tier-price {
  font-size: 22px;
  font-weight: bold;
  color: #eee;
  margin: 6px 0 2px;
}

.tier-price-sub { font-size: 11px; color: rgba(255, 255, 255, 0.35); }

.tier-features {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  line-height: 1.7;
}

/* ── Permission list ───────────────────────────────────────── */
.perm-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.perm-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(0, 106, 78, 0.06);
  border: 1px solid rgba(0, 106, 78, 0.15);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-family: monospace;
  color: #4ade80;
}

.perm-list li::before { content: "✅"; font-size: 14px; }

/* ── Checkbox ──────────────────────────────────────────────── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.terms-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #006a4e;
}

.terms-row span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.terms-row a {
  color: #006a4e;
  text-decoration: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .glass-card { padding: 24px 18px; }
  .auth-nav { padding: 14px 18px; }
}
