/* ─── Tagsia Free Registration Form ────────────────────────────────────────
   Styled to match the Tagsia Member Portal design:
   Light grey page bg · White cards · Navy headings · Blue/orange buttons
   ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.treg-wrap {
  --navy:       #0a2239;
  --blue:       #1e3a8a;
  --blue-hover: #1e3070;
  --orange:     #f97316;
  --org-hover:  #ea6a0a;
  --org-light:  #fff7ed;
  --org-border: #fed7aa;
  --border:     #e2e8f0;
  --bg-input:   #ffffff;
  --txt-head:   #0a2239;
  --txt-body:   #475569;
  --txt-light:  #94a3b8;
  --grn:        #16a34a;
  --red:        #dc2626;
  --bg-card:    #ffffff;
  --radius:     10px;
  --radius-sm:  6px;

  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  font-family: 'Inter', sans-serif;
  color: var(--txt-body);
  overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.treg-header {
  padding: 32px 36px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.treg-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  font-size: 22px;
  margin-bottom: 14px;
}

.treg-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--txt-head);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.treg-sub {
  font-size: 13px;
  color: var(--txt-light);
  font-weight: 400;
}

/* ── Feature chips ───────────────────────────────────────────────────────── */
.treg-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 36px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  justify-content: center;
}

.treg-feature {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid;
}

.treg-yes {
  color: #15803d;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.treg-no {
  color: var(--txt-light);
  border-color: var(--border);
  background: #f8fafc;
}

.treg-no span {
  color: var(--orange);
  font-size: 11px;
  margin-left: 3px;
}

/* ── Error block ─────────────────────────────────────────────────────────── */
.treg-errors {
  margin: 20px 36px 0;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.treg-error-item {
  font-size: 13px;
  color: var(--red);
  line-height: 1.9;
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.treg-form {
  padding: 24px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.treg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.treg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.treg-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-head);
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */
.treg-form input[type="text"],
.treg-form input[type="email"],
.treg-form input[type="password"] {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--txt-head);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.treg-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}

.treg-form input::placeholder { color: var(--txt-light); }

/* ── Password wrapper ────────────────────────────────────────────────────── */
.treg-pass-wrap { position: relative; }
.treg-pass-wrap input { padding-right: 42px; }

.treg-eye {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 15px; opacity: .4; padding: 0;
  color: var(--txt-body); transition: opacity .2s; line-height: 1;
}
.treg-eye:hover { opacity: .8; }

/* ── Password strength ───────────────────────────────────────────────────── */
.treg-strength {
  display: flex; align-items: center; gap: 10px; margin-top: -8px;
}
.treg-strength-bar {
  flex: 1; height: 4px; background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.treg-strength-fill {
  height: 100%; width: 0%; border-radius: 2px;
  transition: width .35s, background .35s;
}
.treg-strength-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; min-width: 60px; text-align: right;
  transition: color .35s; color: var(--txt-light);
}

/* ── Checkbox ────────────────────────────────────────────────────────────── */
.treg-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--txt-body); line-height: 1.5;
  padding: 12px 16px; background: #f8fafc;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.treg-check input[type="checkbox"] {
  margin-top: 2px; accent-color: var(--blue);
  flex-shrink: 0; width: 16px; height: 16px; cursor: pointer;
}
.treg-check a { color: var(--blue); text-decoration: none; font-weight: 500; }
.treg-check a:hover { text-decoration: underline; }

/* ── Primary button — navy blue matching portal "Next" ───────────────────── */
.treg-submit {
  width: 100%; padding: 13px;
  background: var(--blue); color: #ffffff; border: none;
  border-radius: var(--radius-sm); font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  cursor: pointer; transition: background .2s, box-shadow .2s, transform .1s;
  margin-top: 4px;
}
.treg-submit:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px rgba(30,58,138,.25);
}
.treg-submit:active { transform: scale(.99); }

/* ── Login link ──────────────────────────────────────────────────────────── */
.treg-login-link {
  text-align: center; font-size: 13px; color: var(--txt-body);
}
.treg-login-link a {
  color: var(--blue); text-decoration: none; font-weight: 600;
}
.treg-login-link a:hover { text-decoration: underline; }

/* ── Upgrade nudge — orange matching portal CTA ──────────────────────────── */
.treg-upgrade-nudge {
  background: var(--org-light); border: 1px solid var(--org-border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 13px; color: #92400e;
}
.treg-upgrade-nudge strong { color: #7c2d12; }
.treg-upgrade-nudge ul {
  margin: 8px 0 12px 0; padding-left: 0; list-style: none;
}
.treg-upgrade-nudge ul li {
  font-size: 12px; line-height: 1.8; color: #92400e;
}
.treg-upgrade-nudge ul li::before {
  content: '✓ '; color: var(--orange); font-weight: 700;
}
.treg-upgrade-nudge a.treg-upgrade-btn {
  display: block; width: 100%; padding: 11px;
  background: var(--orange); color: #ffffff;
  text-decoration: none; text-align: center;
  border-radius: var(--radius-sm); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  transition: background .2s; box-sizing: border-box;
}
.treg-upgrade-nudge a.treg-upgrade-btn:hover {
  background: var(--org-hover); text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .treg-header   { padding: 24px 20px 18px; }
  .treg-features { padding: 12px 20px; }
  .treg-form     { padding: 20px 20px 24px; }
  .treg-row      { grid-template-columns: 1fr; }
  .treg-errors   { margin: 16px 20px 0; }
}
