:root {
  --red: #C8102E;
  --red-deep: #9B0D22;
  --dark: #1A1214;
  --mid: #6B5B5E;
  --border: #EDE3E0;
  --cream: #FDF8F5;
  --white: #FFFFFF;
  --success: #1E7D3C;
  --error: #C8102E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--white);
  border-bottom: 3px solid var(--red);
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--red);
}

.brand-sub {
  font-size: 14px;
  color: var(--mid);
  font-weight: 500;
}

.topnav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--mid);
  font-weight: 600;
  font-size: 14px;
}

.topnav a:hover { color: var(--red); }

.content {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 40px;
  width: 100%;
  max-width: 480px;
}

.card.wide { max-width: 720px; }

h1 {
  font-size: 26px;
  margin: 0 0 8px;
}

h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--dark);
}

p.subtitle {
  color: var(--mid);
  margin: 0 0 28px;
  font-size: 15px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
  margin-top: 16px;
}

input[type=text], input[type=email], input[type=password], input[type=url] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: var(--red);
}

.hint {
  font-size: 12px;
  color: var(--mid);
  margin-top: 4px;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  text-decoration: none;
  text-align: center;
}

.btn:hover { background: var(--red-deep); }

.btn.secondary {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn.full { width: 100%; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}
.alert.error {
  background: #FCEBED;
  color: var(--error);
  border: 1px solid #F5C2CA;
}
.alert.success {
  background: #E7F5EB;
  color: var(--success);
  border: 1px solid #B9E4C5;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row span:first-child { color: var(--mid); }
.info-row span:last-child { font-weight: 600; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.status-badge.trial { background: #FFF3D6; color: #8A6D1E; }
.status-badge.active { background: #E7F5EB; color: var(--success); }
.status-badge.pendingsetup { background: #ECECEC; color: var(--mid); }
.status-badge.suspended { background: #FCEBED; color: var(--error); }

.footer {
  text-align: center;
  padding: 20px;
  color: var(--mid);
  font-size: 12px;
}

.link-row {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
  color: var(--mid);
}
.link-row a { color: var(--red); font-weight: 600; text-decoration: none; }
