:root {
  --bg: #f6f8fb;
  --card: #fff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--rts-font-family);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.auth-account-body {
  background: var(--rts-surface);
}

.auth-account-page {
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(0, 1.1fr);
  gap: clamp(var(--rts-space-8), 5vw, 72px);
  margin: 0 auto;
  padding: var(--rts-space-6);
}

.auth-account-form-column {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: var(--rts-space-8) clamp(0px, 1.5vw, var(--rts-space-6));
}

.auth-account-shell {
  width: min(100%, 480px);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--rts-space-3);
  margin-bottom: var(--rts-space-10);
  color: var(--rts-text);
}

.auth-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--rts-radius-md);
  background: var(--rts-primary);
}

.auth-brand__mark img {
  width: 28px;
  height: 28px;
}

.auth-brand__name {
  font-size: var(--rts-font-lg);
  font-weight: 700;
  line-height: var(--rts-line-tight);
}

.auth-account-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-account-card h1 {
  margin: 0 0 var(--rts-space-2);
  color: var(--rts-text);
  font-size: var(--rts-font-title);
  font-weight: 700;
  line-height: var(--rts-line-tight);
  letter-spacing: 0;
}

.auth-account-card .login-helper {
  margin-bottom: var(--rts-space-6);
  color: var(--rts-muted);
  font-size: var(--rts-font-base);
  line-height: var(--rts-line-normal);
}

.auth-account-card form {
  display: grid;
  gap: var(--rts-space-4);
}

.auth-account-card input:where([type="text"], [type="email"], [type="password"]),
.auth-account-card select {
  min-height: 44px;
  height: 44px;
  padding-inline: var(--rts-space-3);
}

.auth-account-card select[name="country"] {
  padding-right: 44px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("../icons/coolicons/Caret_Down_SM.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

.auth-account-card .auth-primary-action {
  min-height: 44px;
  margin-top: var(--rts-space-1);
  justify-content: center;
}

.auth-account-card .auth-country-guidance {
  font-weight: 400;
}

.auth-account-card .auth-agreement-text,
.auth-account-card .auth-agreement-text a {
  font-size: var(--rts-font-sm);
  font-weight: 400;
  line-height: var(--rts-line-normal);
}

.auth-account-switch,
.auth-account-switch span,
.auth-account-switch a {
  font-size: var(--rts-font-base);
  line-height: var(--rts-line-normal);
}

.auth-account-card .auth-checkbox {
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  font-size: var(--rts-font-sm);
  font-weight: 400;
  line-height: var(--rts-line-normal);
}

.auth-account-card .auth-checkbox > .rts-checkbox {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  align-self: start;
}

.auth-account-card .auth-agreement-text {
  min-width: 0;
}

.auth-account-card .auth-checkbox .auth-agreement-text a {
  color: var(--rts-primary-dark);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.auth-account-switch {
  align-items: baseline;
  font-weight: 500;
}

.auth-account-switch span,
.auth-secondary-cta.auth-account-switch a {
  font-weight: inherit;
}

.auth-account-page--login .login-help {
  width: 100%;
  text-align: center;
}

.auth-promo-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: calc(100vh - (2 * var(--rts-space-6)));
  min-height: calc(100dvh - (2 * var(--rts-space-6)));
  overflow: hidden;
  border-radius: var(--rts-radius-xl);
  background: #07152f;
  color: #fff;
}

.auth-promo-panel__copy {
  max-width: 620px;
  padding: clamp(var(--rts-space-8), 4vw, 64px);
}

.auth-promo-panel__eyebrow {
  margin: 0 0 var(--rts-space-4);
  color: #bfdbfe;
  font-size: var(--rts-font-sm);
  font-weight: 700;
  line-height: var(--rts-line-normal);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-promo-panel h2 {
  max-width: 560px;
  margin: 0 0 var(--rts-space-4);
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-promo-panel__copy > p:last-child {
  max-width: 540px;
  margin: 0;
  color: #dbeafe;
  font-size: var(--rts-font-lg);
  line-height: 1.6;
}

.auth-promo-panel__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  gap: 32px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5vh 24px;
}

.login-hero {
  padding: 24px 6px;
}

.login-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
}

.login-tagline {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 850;
  color: #0f172a;
}

.login-intro {
  max-width: 560px;
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
  line-height: 1.6;
}

.login-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  font-weight: 800;
  color: #334155;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.login-feature-list span {
  color: #166534;
}

.login-panel {
  width: 100%;
}

.login-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.login-card .login-helper {
  margin: 0 0 20px;
  color: #64748b;
}

.login-card form {
  display: grid;
  gap: 12px;
}

.auth-primary-action {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.auth-error-list {
  margin: 0;
  padding-left: 18px;
}

.auth-field-error {
  display: block;
}

.auth-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 16px 0 6px;
}

.auth-checkbox .auth-field-error {
  grid-column: 2;
}

.auth-checkbox a,
.auth-secondary-cta a,
.auth-inline-link a,
.auth-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.auth-checkbox a:hover,
.auth-secondary-cta a:hover,
.auth-inline-link a:hover,
.auth-link:hover {
  text-decoration: underline;
}

.auth-inline-link {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
}

.auth-secondary-cta {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 14px;
}

.login-help {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.auth-secondary-cta + .login-help {
  margin-top: 14px;
}

.rts-legal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.rts-legal-links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.rts-legal-links a:hover { text-decoration: underline; }

.legal-page { align-items: start; }
.legal-document { max-width: 920px; }
.legal-document h2 { margin-top: 0; }
.legal-document h3 { margin: 24px 0 8px; font-size: 18px; letter-spacing: 0; }
.legal-document p,
.legal-document li { color: #475569; line-height: 1.65; }
.legal-document ul { padding-left: 22px; }
.legal-document__meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; color: #64748b; font-size: 13px; }
.legal-document__notice { margin: 0 0 22px; }
.legal-contact { padding-top: 8px; border-top: 1px solid var(--line); }

.login-help strong {
  display: block;
  color: #334155;
  margin-bottom: 3px;
}

.quick-auth-page {
  min-height: 100vh;
  background: var(--bg);
}

.quick-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quick-auth-card {
  box-sizing: border-box;
  width: min(100%, 430px);
  max-width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.quick-auth-card--wide {
  width: min(100%, 500px);
}

.quick-auth-brand {
  margin: 0 0 18px;
  color: #334155;
  font-weight: 850;
}

.quick-auth-card h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.12;
}

.quick-auth-company,
.quick-auth-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.quick-auth-company {
  color: #0f172a;
  font-weight: 800;
}

.quick-auth-form {
  display: grid;
  gap: 14px;
}

.quick-auth-pin-input {
  min-height: 54px;
  text-align: center;
  font-size: max(20px, var(--rts-font-md, 16px));
  letter-spacing: .22em;
}

.quick-auth-action {
  width: 100%;
  justify-content: center;
}

.quick-tools-section {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.quick-tools-section h2 {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.quick-tool-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.quick-tool-card h3,
.quick-tool-card p {
  margin: 0;
}

.quick-tool-card h3 {
  font-size: 18px;
}

.quick-tool-card p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .auth-promo-panel h2 {
    font-size: 34px;
  }
}

@media (max-width: 900px) {
  .auth-account-page {
    display: block;
    max-width: none;
    padding: 0;
  }

  .auth-account-form-column {
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--rts-space-10) var(--rts-space-6);
  }

  .auth-promo-panel {
    display: none;
  }

  .login-page {
    min-height: 100vh;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px;
  }

  .login-hero {
    padding: 4px 0;
  }

  .login-feature-list {
    gap: 8px;
  }

  .login-card {
    padding: 22px;
  }

  .quick-auth-shell {
    align-items: start;
    padding: 18px 16px;
  }

  .quick-auth-card {
    margin-top: 5vh;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .auth-account-page {
    padding: 0;
  }

  .auth-account-form-column {
    align-items: flex-start;
    padding: var(--rts-space-6) var(--rts-space-4);
  }

  .auth-account-card {
    padding: 0;
  }

  .auth-brand {
    margin-bottom: var(--rts-space-8);
  }

  .auth-name-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
