:root {
  color-scheme: light;
  --navy: #071a35;
  --blue: #1769e0;
  --cyan: #47d8dc;
  --ink: #17243b;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f4f7fb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
.topbar {
  min-height: 76px; padding: 14px max(5vw, 22px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--navy); color: white;
}
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-weight: 800; letter-spacing: .2px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: var(--navy); background: linear-gradient(135deg, var(--cyan), #a3f1e8); font-size: 24px;
}
.brand small { display: block; color: #aabbd3; font-size: 9px; letter-spacing: 1.8px; }
.secure-label { color: #d3dfef; font-size: 13px; }
.layout {
  width: min(1160px, 92%); margin: 48px auto; display: grid;
  grid-template-columns: .85fr 1.15fr; align-items: start; gap: 44px;
}
.intro { padding: 25px 0; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.intro h1 { margin: 15px 0; color: var(--navy); font-size: clamp(32px, 4vw, 49px); line-height: 1.1; letter-spacing: -1.6px; }
.intro-copy { max-width: 440px; color: var(--muted); font-size: 16px; }
.benefits { display: grid; gap: 24px; margin: 35px 0; }
.benefits > div { display: flex; gap: 13px; align-items: flex-start; }
.check { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #dff8f3; color: #087f70; font-weight: 900; }
.benefits strong, .benefits small { display: block; }
.benefits small { margin-top: 3px; color: var(--muted); }
.notice { padding: 16px 18px; border-left: 3px solid #f0b44b; border-radius: 8px; background: #fff7e8; color: #72501a; font-size: 13px; }
.notice strong { display: block; margin-bottom: 4px; }
.form-card { padding: clamp(22px, 3vw, 36px); border: 1px solid #e8edf5; border-radius: 20px; background: var(--surface); box-shadow: 0 20px 60px #0b1d3510; }
.form-heading { margin-bottom: 26px; }
.form-heading h2 { margin: 6px 0; color: var(--navy); font-size: 28px; letter-spacing: -.7px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 13px; }
form h3, .conditions h3 { margin: 26px 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
label { display: block; font-size: 12px; font-weight: 700; color: #34435b; }
label input:not([type="checkbox"]) {
  width: 100%; margin-top: 7px; padding: 12px 12px; border: 1px solid #d6dfeb;
  border-radius: 9px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 14px;
}
label input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #1769e019; }
label small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.full { grid-column: 1 / -1; }
.optional { color: #8793a5; font-weight: 400; }
.conditions { margin-top: 25px; padding: 0 15px 12px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbfe; }
.conditions h3 { margin-top: 14px; }
.conditions ul { margin: 0; padding-left: 19px; color: #47566d; font-size: 12px; }
.conditions li { margin: 7px 0; }
.terms-note { color: #7b5a25; font-size: 11px; }
.accept { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; font-size: 12px; font-weight: 500; }
.accept input { margin-top: 3px; accent-color: var(--blue); }
button { width: 100%; padding: 14px 18px; border: 0; border-radius: 10px; background: var(--blue); color: white; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #1059c5; }
button:disabled { opacity: .65; cursor: wait; }
button span { float: right; font-size: 20px; line-height: 1; }
.privacy-note { text-align: center; color: var(--muted); font-size: 11px; }
.status { margin: 0 0 20px; padding: 12px 14px; border-radius: 9px; font-size: 13px; }
.status.error { background: #fff0f0; color: #a12626; border: 1px solid #ffd7d7; }
.status.info { background: #eef6ff; color: #174b89; border: 1px solid #d6e8ff; }
.success-panel { padding: 22px 0; text-align: center; }
.success-icon { margin: 0 auto 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #dcfce7; color: #16733c; font-size: 28px; }
.success-panel h2 { color: var(--navy); }
.success-panel p { color: var(--muted); font-size: 14px; }
.reference { font-weight: 800; color: var(--navy) !important; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 20px; margin: 25px auto; }
  .intro { padding: 12px 0; }
  .intro h1 { max-width: 650px; }
  .benefits { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { padding: 13px 18px; }
  .secure-label { font-size: 11px; }
  .layout { width: 94%; }
  .grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .form-card { padding: 20px 16px; border-radius: 14px; }
  footer { padding: 18px; font-size: 11px; }
}

/* Bilingual language selector */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #52647d;
  border-radius: 10px;
  background: #102744;
}
.language-button {
  width: auto;
  min-width: 42px;
  padding: 7px 10px;
  border-radius: 7px;
  background: transparent;
  color: #d3dfef;
  font-size: 12px;
  font-weight: 800;
}
.language-button:hover { background: #233c5c; }
.language-button.active {
  background: var(--cyan);
  color: var(--navy);
}
@media (max-width: 520px) {
  .topbar { align-items: flex-start; gap: 10px; }
  .topbar-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
  .secure-label { text-align: right; }
}

/* Reseller login, dashboard and logout pages */
.auth-layout {
  width: min(520px, 92%);
  margin: 56px auto;
  min-height: 55vh;
}
.auth-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #e8edf5;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 60px #0b1d3510;
}
.auth-card h1, .dashboard-heading h1 {
  margin: 10px 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}
.auth-copy { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
#login-form { display: grid; gap: 18px; }
#login-form label { display: grid; gap: 7px; }
#login-form input {
  width: 100%;
  padding: 13px;
  border: 1px solid #d6dfeb;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}
#login-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1769e019;
}
#login-form button { width: 100%; }
.auth-links { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-links a { display: inline-block; margin-top: 6px; color: var(--blue); font-weight: 800; }
.auth-footnote { margin-top: 22px; color: var(--muted); font-size: 12px; }
.logout-link {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.dashboard-layout { width: min(1000px, 92%); margin: 48px auto; min-height: 55vh; }
.dashboard-heading { margin-bottom: 26px; }
.dashboard-heading > p { color: var(--muted); }
.dashboard-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #e8edf5;
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 60px #0b1d3508;
}
.dashboard-card h2 { margin-top: 0; color: var(--navy); }
.account-details { margin: 0; }
.account-details > div {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) 1.3fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.account-details > div:last-child { border-bottom: 0; }
.account-details dt { color: var(--muted); font-size: 13px; }
.account-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .auth-layout, .dashboard-layout { margin: 26px auto; }
  .auth-card { border-radius: 14px; }
  .account-details > div { grid-template-columns: 1fr; gap: 4px; }
  .logout-link { font-size: 12px; }
}
