:root{
  --bg1:#053d5e;
  --accent:#ed4a15;
  --card: rgba(255,255,255,.10);
  --card2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --shadow: 0 18px 60px rgba(0,0,0,.25);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

.cb-home{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(237,74,21,.28), transparent 60%),
    radial-gradient(1000px 600px at 80% 10%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, #042f48, var(--bg1));
}

.cb-homeWrap{
  min-height:100vh;
  padding: 18px;
  display:flex;
  flex-direction:column;
}

.cb-homeTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width: 1040px;
  width:100%;
  margin: 0 auto;
  padding: 10px 6px 18px;
}

.cb-homeLogo{
  font-weight: 900;
  letter-spacing: .3px;
  font-size: 18px;
  display:flex;
  align-items:center;
  gap:10px;
}

.cb-homeLogo::before{
  content:"";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(237,74,21,.18);
}

.cb-homeNav{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.cb-homeLink{
  text-decoration:none;
  color: var(--text);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  transition: transform .05s ease, filter .15s ease;
}

.cb-homeLink:active{ transform: translateY(1px); }

.cb-homeLink--primary{
  border-color: rgba(237,74,21,.45);
  background: rgba(237,74,21,.18);
}

.cb-hero{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 0 28px;
}

.cb-heroCard{
  width:100%;
  max-width: 720px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(14px);
}

.cb-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.cb-badge::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.cb-heroTitle{
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 950;
}

.cb-heroSub{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.cb-ctaRow{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.cb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 900;
  letter-spacing: .2px;
  border: 1px solid transparent;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .05s ease, filter .15s ease;
}

.cb-btn:active{ transform: translateY(1px); }

.cb-btn--primary{
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff6a3b);
  box-shadow: 0 18px 50px rgba(237,74,21,.22);
}

.cb-btn--ghost{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.06);
}

.cb-miniInfo{
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.12);
  overflow:auto;
}

.cb-miniInfo code{
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.cb-homeFooter{
  max-width: 1040px;
  width:100%;
  margin: 0 auto;
  padding: 14px 6px 10px;
  font-size: 12px;
  color: var(--muted);
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:center;
}

.cb-footLink{
  color: #fff;
  text-decoration:none;
  border-bottom: 1px dashed rgba(255,255,255,.35);
}

.footer-logo{
  height: 15px;
  width: auto;
  vertical-align: middle;
}

/* ---- Auth pages (login / register / forgot / reset / change-password) ---- */
.cb-authWrap{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

.cb-authCard{
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  padding: 32px 28px;
  backdrop-filter: blur(14px);
}

.cb-authHeader{ margin-bottom: 22px; }

.cb-authTitle{
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.cb-authSubtitle{
  font-size: 13px;
  color: var(--muted);
}

.cb-authForm{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cb-label{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 4px;
}

.cb-input--auth{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  -webkit-appearance: none;
}

.cb-input--auth::placeholder{ color: rgba(255,255,255,.30); }

select.cb-input--auth option{
  background-color: #042f48;
  color: rgba(255,255,255,.92);
}

.cb-input--auth:focus{
  border-color: rgba(237,74,21,.60);
  background: rgba(255,255,255,.10);
}

.cb-authBtn{
  margin-top: 20px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.cb-authHint{
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.cb-authLink{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.40);
}

.cb-alert--error{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(237,74,21,.45);
  background: rgba(237,74,21,.12);
  color: var(--text);
  font-size: 13px;
  margin-bottom: 16px;
}

.cb-alert--success{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(80,200,100,.35);
  background: rgba(80,200,100,.10);
  color: var(--text);
  font-size: 13px;
  margin-bottom: 16px;
}

.cb-authNote{
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.14);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.cb-authFooter{
  margin-top: 28px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ---- Account / me page ---- */
.cb-acctMain{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 18px 28px;
}

.cb-acctTitle{
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.cb-acctCardItem{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.cb-acctCardName{
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}

.cb-acctCardMeta{
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.cb-acctCode{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #fff;
}

.cb-acctActions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.cb-acctActions form{ margin: 0; }
.cb-acctActions .cb-btn{ width: 100%; font-size: 13px; }
.cb-acctActions button.cb-btn{ cursor: pointer; border: 1px solid var(--line); }

/* ---- Consent checkboxes (register + brand enrollment) ---- */
.cb-consentBlock {
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.cb-consentItem {
  margin-bottom: 0.75rem;
}
.cb-consentLabel {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,.70);
  line-height: 1.5;
}
.cb-consentLabel--optional {
  color: rgba(255,255,255,.50);
}
.cb-consentCheck {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.cb-consentLink {
  color: #fff;
  text-decoration: underline;
}
.cb-consentOptional {
  font-size: 12px;
  color: rgba(255,255,255,.40);
}
.cb-consentError {
  display: none;
  color: #ff8c7a;
  font-size: 12px;
  margin: 3px 0 0 1.375rem;
}
.cb-consentError.visible {
  display: block;
}
.cb-consentCheck--error {
  outline: 2px solid #ff8c7a;
  border-radius: 2px;
}
.cb-brandLogo {
  display: block;
  max-height: 56px;
  max-width: 160px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}
.cb-consentNoLink {
  color: rgba(255,255,255,.40);
  font-style: italic;
}

/* ---- Legal pages (terminos / privacidad) ---- */
.cb-legalDoc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 18px 48px;
  color: var(--text);
  line-height: 1.7;
  font-size: 14px;
}

.cb-legalTitle {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  margin: 0 0 6px;
}

.cb-legalMeta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 28px;
}

.cb-legalDoc h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 28px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.cb-legalDoc p {
  margin: 0 0 12px;
  color: var(--muted);
}

.cb-legalDoc ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
}

.cb-legalDoc li {
  margin-bottom: 4px;
}

.cb-legalDoc strong {
  color: var(--text);
}

.cb-legalDoc em {
  font-size: 12px;
  color: rgba(255,255,255,.30);
}