/* TCC Auth Flow — Shared Styles
 * STAGING ENVIRONMENT — UI MOCKUP ONLY
 * No real authentication, no real database, no real API calls.
 */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg:         #050508;
  --surface:    #0d0d14;
  --surface-2:  #14141f;
  --border:     #1a1a2e;
  --border-bright: #252540;
  --text:       #c8c8d8;
  --text-dim:   #aaaabc;
  --text-faint: #66667a;
  --text-bright:#ffffff;
  --green:      #00e676;
  --green-dim:  #004d25;
  --red:        #ff3d57;
  --red-dim:    #4d0012;
  --amber:      #ffab00;
  --amber-dim:  #4d3300;
  --blue:       #448aff;
  --blue-dim:   #0d2266;
  --font-display: 'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

/* ── HEADER ─────────────────────────────────────────────────────────── */

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.brand-block { display: flex; flex-direction: column; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-bright);
  font-weight: 600;
}
.brand-title {
  /* Retained for backward compatibility; not used in current templates. */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-bright);
  letter-spacing: 1px;
}

/* ── CARD CONTAINER ─────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
}
.card.wide { max-width: 640px; }

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.card-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* ── FORM ELEMENTS ──────────────────────────────────────────────────── */

.field-group { margin-bottom: 18px; }
.field-row { display: flex; gap: 12px; }
.field-row .field-group { flex: 1; }

label.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}
label.field-label .req { color: var(--amber); margin-left: 4px; }
label.field-label .opt {
  color: var(--text-faint);
  font-size: 9px;
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}

input::placeholder {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

.field-help {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */

button, .btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--green);
  color: #002b14;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
button:hover, .btn:hover { opacity: 0.9; }
button:active, .btn:active { transform: translateY(1px); }
.btn.full-width { width: 100%; }

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn.danger {
  background: var(--red);
  color: #2b0008;
}

/* ── CHECKBOXES (CONSENT) ───────────────────────────────────────────── */

.consent-box {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.consent-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.consent-text strong { color: var(--text-bright); display: block; margin-bottom: 4px; }
.consent-text a { color: var(--blue); text-decoration: none; }
.consent-text a:hover { text-decoration: underline; }

/* ── PASSWORD STRENGTH METER ───────────────────────────────────────── */

.pw-meter {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.pw-meter-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.3s, background-color 0.3s;
}
.pw-rules {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.6;
}
.pw-rules .rule { display: flex; align-items: center; gap: 6px; }
.pw-rules .rule.met { color: var(--green); }
.pw-rules .rule .check { width: 12px; }

/* ── OTP INPUT ──────────────────────────────────────────────────────── */

.otp-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 16px 0;
}
.otp-grid input {
  width: 48px;
  height: 54px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  color: var(--text-bright);
  border-radius: 4px;
}

/* ── ALERT / NOTICES ────────────────────────────────────────────────── */

.notice {
  background: var(--blue-dim);
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-bright);
}
.notice.amber {
  background: var(--amber-dim);
  border-color: var(--amber);
}
.notice .notice-title {
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  font-size: 11px;
  margin-bottom: 4px;
  display: block;
}

/* ── STAGING WATERMARK ─────────────────────────────────────────────── */

.staging-watermark {
  position: fixed;
  top: 12px;
  right: 12px;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 100;
}

/* ── DIVIDERS / FOOTER LINKS ───────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.footer-link {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-link a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.footer-link a:hover { text-decoration: underline; }

/* ── PROGRESS STEPS ─────────────────────────────────────────────────── */

.progress-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.progress-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
}
.progress-step.done { background: var(--green); }
.progress-step.active { background: var(--blue); }
.progress-step-label {
  position: absolute;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.progress-step.done .progress-step-label,
.progress-step.active .progress-step-label {
  color: var(--text-dim);
}

/* ── WELCOME / SUCCESS PAGE ────────────────────────────────────────── */

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 2px solid var(--green);
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 40px;
  font-weight: bold;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */

/* ── PLAN SELECTION CARDS (PAYMENT PAGE) ─────────────────────────── */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.plan-card {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 16px 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.05s;
  text-align: center;
  position: relative;
}
.plan-card:hover { border-color: var(--blue); }
.plan-card.selected {
  border-color: var(--green);
  background: rgba(0, 230, 118, 0.05);
}
.plan-card.selected::after {
  content: '\2713';
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--green);
  font-weight: bold;
  font-size: 14px;
}

.plan-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #2b1f00;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.plan-duration {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.plan-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.plan-permonth {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.plan-discount {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.plan-savings {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  margin-top: 3px;
}

/* ── ORDER SUMMARY BOX ──────────────────────────────────────────── */

.order-summary {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.order-summary-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.order-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.order-line.faint { color: var(--text-dim); font-size: 12px; }
.order-line.total {
  border-top: 1px solid var(--border-bright);
  margin-top: 10px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-bright);
}
.order-line .label { color: var(--text-dim); }
.order-line .value { font-family: var(--font-mono); color: var(--text-bright); }
.order-line.total .value { color: var(--green); }

/* ── PAYMENT METHOD TABS ───────────────────────────────────────── */

.pm-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pm-tab {
  flex: 1;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.pm-tab.active {
  color: var(--text-bright);
  border-bottom-color: var(--green);
}
.pm-tab:hover:not(.active) { color: var(--text); }

.pm-panel {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 18px;
  min-height: 120px;
}
.pm-panel.hidden { display: none; }

.pm-helper {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  body { padding: 20px 12px; }
  .card { padding: 24px 20px; }
  .field-row { flex-direction: column; gap: 0; }
  .otp-grid input { width: 38px; height: 48px; font-size: 18px; }
}
