/* Login / Register — robot story panel + clean white form column (no sidebar nav). */



body.auth-desk-page.desk-app.desk-premium {

  --ink: #101828;

  --muted: #667085;

  --line: #e4e7ec;

  --soft: #f3f4f6;

  --gold: #f59e0b;

  --gold-deep: #d97706;

  display: grid;

  grid-template-columns: min(480px, 42vw) minmax(0, 1fr);

  min-height: 100vh;

  margin: 0;

  background: #fff;

  color: var(--ink);

  font-family: "DM Sans", "Segoe UI", sans-serif;

}



body.auth-desk-page .desk-sidebar {

  position: sticky;

  top: 0;

  height: 100vh;

  max-height: 100vh;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  border-right: none;

}



body.auth-desk-page .auth-desk-tagline {

  margin: 0 0 1.5rem;

  padding: 0 0.35rem;

  font-size: 0.88rem;

  line-height: 1.55;

  color: rgba(226, 232, 240, 0.82);

}



body.auth-desk-page .auth-desk-story {

  margin-top: auto;

  padding: 0 0.35rem 1.5rem;

}



body.auth-desk-page .auth-desk-headline {

  margin: 0 0 1rem;

  font-size: clamp(1.35rem, 2.2vw, 1.75rem);

  font-weight: 800;

  line-height: 1.25;

  letter-spacing: -0.02em;

  color: #fff;

}



body.auth-desk-page .auth-desk-bullets {

  margin: 0;

  padding: 0;

  list-style: none;

  display: grid;

  gap: 0.65rem;

}



body.auth-desk-page .auth-desk-bullets li {

  position: relative;

  padding-left: 1.65rem;

  font-size: 0.92rem;

  line-height: 1.45;

  color: rgba(241, 245, 249, 0.92);

}



body.auth-desk-page .auth-desk-bullets li::before {

  content: "✓";

  position: absolute;

  left: 0;

  top: 0.05rem;

  width: 1.15rem;

  height: 1.15rem;

  border-radius: 999px;

  background: rgba(245, 158, 11, 0.2);

  color: #fbbf24;

  font-size: 0.72rem;

  font-weight: 800;

  display: grid;

  place-items: center;

}



body.auth-desk-page .auth-desk-main {

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: clamp(3rem, 8vh, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vh, 2.5rem);

  min-height: 100vh;

  overflow-y: auto;

  background: #fff;

}



body.auth-desk-page.auth-desk-register .auth-desk-main {

  align-items: flex-start;

  padding-top: clamp(3rem, 6vh, 3.5rem);

}



body.auth-desk-page .auth-desk-back {

  position: absolute;

  top: clamp(1rem, 2.5vh, 1.35rem);

  right: clamp(1rem, 3vw, 2rem);

  font-size: 0.88rem;

  font-weight: 600;

  color: var(--muted);

  text-decoration: none;

}



body.auth-desk-page .auth-desk-back:hover {

  color: var(--ink);

}



body.auth-desk-page .auth-desk-inner {

  width: 100%;

  max-width: 440px;

  margin: 0 auto;

}



body.auth-desk-page.auth-desk-register .auth-desk-inner {

  max-width: 520px;

}



body.auth-desk-page .auth-desk-card {

  background: transparent;

  border: 0;

  border-radius: 0;

  padding: 0;

  box-shadow: none;

}



body.auth-desk-page .auth-desk-kicker {

  margin: 0 0 0.35rem;

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  color: var(--gold-deep);

}



body.auth-desk-page .auth-desk-card h1 {

  margin: 0 0 0.35rem;

  font-size: clamp(1.65rem, 3vw, 2rem);

  font-weight: 800;

  letter-spacing: -0.03em;

  color: var(--ink);

}



body.auth-desk-page .auth-lede {

  margin: 0 0 1.25rem;

  color: var(--muted);

  font-size: 0.95rem;

  line-height: 1.55;

}



body.auth-desk-page .auth-error {

  margin: 0 0 1rem;

  padding: 0.75rem 0.9rem;

  border-radius: 12px;

  background: #fef2f2;

  border: 1px solid #fecaca;

  color: #b91c1c;

  font-size: 0.9rem;

  font-weight: 600;

}



body.auth-desk-page .auth-form {

  display: grid;

  gap: 0.85rem;

}



body.auth-desk-page .auth-form label {

  display: grid;

  gap: 0.35rem;

}



body.auth-desk-page .auth-form label span {

  font-size: 0.86rem;

  font-weight: 700;

  color: #344054;

}



body.auth-desk-page .auth-form .req {

  font-style: normal;

  color: #dc2626;

  font-weight: 800;

}



body.auth-desk-page .auth-form .opt {

  font-style: normal;

  color: var(--muted);

  font-weight: 500;

}



body.auth-desk-page .auth-form input,

body.auth-desk-page .auth-form select {

  width: 100%;

  border: 1px solid var(--line);

  border-radius: 12px;

  padding: 0.8rem 0.95rem;

  font: inherit;

  font-size: 0.95rem;

  background: #f9fafb;

  color: var(--ink);

  transition: border-color 0.15s, box-shadow 0.15s;

}



body.auth-desk-page .auth-form input:focus,

body.auth-desk-page .auth-form select:focus {

  outline: none;

  border-color: var(--gold);

  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);

  background: #fff;

}



body.auth-desk-page .auth-form select option {

  background: #fff;

  color: var(--ink);

}



body.auth-desk-page .auth-form-row {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 0.75rem;

}



body.auth-desk-page .auth-hint {

  margin: -0.25rem 0 0;

  font-size: 0.82rem;

  color: var(--muted);

}



body.auth-desk-page .auth-check {

  display: flex;

  gap: 0.6rem;

  align-items: flex-start;

  font-size: 0.86rem;

  line-height: 1.5;

  color: #475467;

  cursor: pointer;

}



body.auth-desk-page .auth-check input {

  margin-top: 0.15rem;

  accent-color: var(--gold);

}



body.auth-desk-page .auth-check a {

  color: var(--gold-deep);

  font-weight: 700;

}



body.auth-desk-page .auth-submit,

body.auth-desk-page .auth-desk-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  margin-top: 0.25rem;

  padding: 0.9rem 1.25rem;

  border: 0;

  border-radius: 999px;

  background: linear-gradient(135deg, #fbbf24, #f59e0b);

  color: #111;

  font-weight: 800;

  font-size: 0.98rem;

  cursor: pointer;

  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);

  text-decoration: none;

}



body.auth-desk-page .auth-desk-btn.outline,

body.auth-desk-page .terms-open-btn {

  background: #fff;

  border: 1.5px solid #d0d5dd;

  color: #344054;

  box-shadow: none;

}



body.auth-desk-page .terms-open-btn {

  width: 100%;

}



body.auth-desk-page .auth-switch {

  margin: 1.1rem 0 0;

  text-align: center;

  color: var(--muted);

  font-size: 0.92rem;

}



body.auth-desk-page .auth-switch a {

  color: var(--gold-deep);

  font-weight: 700;

}



body.auth-desk-page .terms-gate {

  padding-top: 0.5rem;

  border-top: 1px solid var(--line);

  margin-top: 0.25rem;

}



body.auth-desk-page .terms-gate-hint {

  margin: 0 0 0.65rem;

  font-size: 0.84rem;

  color: var(--muted);

  line-height: 1.45;

}



body.auth-desk-page .terms-gate-hint.ok {

  color: #059669;

  font-weight: 600;

}



body.terms-modal-open { overflow: hidden; }

.terms-modal {

  position: fixed;

  inset: 0;

  z-index: 500;

  display: grid;

  place-items: center;

  padding: 1rem;

  background: rgba(16, 24, 40, 0.55);

  backdrop-filter: blur(4px);

}

.terms-modal[hidden] { display: none !important; }

.terms-modal-panel {

  width: min(520px, 100%);

  max-height: min(90vh, 640px);

  display: flex;

  flex-direction: column;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 18px;

  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.2);

  overflow: hidden;

}

.terms-modal-head {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 1rem 1.15rem;

  border-bottom: 1px solid var(--line);

}

.terms-modal-head h2 {

  margin: 0;

  font-size: 1.1rem;

  font-weight: 800;

  color: var(--ink);

}

.terms-modal-close {

  border: 0;

  background: var(--soft);

  width: 2.2rem;

  height: 2.2rem;

  border-radius: 10px;

  cursor: pointer;

}

.terms-modal-lede {

  margin: 0;

  padding: 0.6rem 1.15rem 0;

  font-size: 0.82rem;

  color: var(--muted);

}

.terms-scroll {

  flex: 1 1 auto;

  overflow-y: auto;

  margin: 0.6rem 1.15rem;

  padding: 0.85rem 1rem;

  border-radius: 12px;

  border: 1px solid var(--line);

  background: #f9fafb;

  font-size: 0.86rem;

  line-height: 1.6;

  color: #475467;

}

.terms-scroll h3 {

  margin: 1rem 0 0.45rem;

  font-size: 0.95rem;

  color: var(--gold-deep);

}

.terms-scroll h3:first-child { margin-top: 0; }

.terms-scroll-end {

  margin-top: 1rem !important;

  padding-top: 0.65rem;

  border-top: 1px dashed #d0d5dd;

  color: var(--gold-deep) !important;

  font-weight: 700;

  text-align: center;

}

.terms-modal-foot { padding: 0.85rem 1.15rem 1.1rem; border-top: 1px solid var(--line); }

.terms-agree-btn { width: 100%; }

.terms-agree-btn:disabled { opacity: 0.45; cursor: not-allowed; }



@media (max-width: 900px) {

  body.auth-desk-page.desk-app.desk-premium {

    grid-template-columns: 1fr;

  }

  body.auth-desk-page .desk-sidebar {

    position: relative;

    height: auto;

    max-height: none;

    min-height: 0;

  }

  body.auth-desk-page .auth-desk-story {

    margin-top: 0;

    padding-bottom: 1rem;

  }

  body.auth-desk-page .auth-desk-headline {

    font-size: 1.2rem;

  }

  body.auth-desk-page .auth-desk-main {

    min-height: 0;

  }

  body.auth-desk-page .auth-form-row {

    grid-template-columns: 1fr;

  }

}

body.auth-desk-page .auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
body.auth-desk-page .auth-forgot {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
}
body.auth-desk-page .auth-forgot:hover { text-decoration: underline; }
body.auth-desk-page .auth-password-wrap {
  position: relative;
  display: block;
}
body.auth-desk-page .auth-password-wrap input {
  padding-right: 3.25rem;
}
body.auth-desk-page .auth-password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
}
body.auth-desk-page .auth-password-toggle:hover { color: var(--ink); }
body.auth-desk-page .auth-message {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}
