:root{--navy:#07152d;--navy2:#0d2d58;--bg:#f5f7fb;--panel:#fff;--line:#e1e7f0;--text:#172033;--muted:#718096;--primary:#315efb;--primary-dark:#274bd0;--danger:#c73b4a;--shadow:0 24px 70px rgba(32,50,90,.12)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:var(--text);background:var(--bg)}a{color:var(--primary);text-decoration:none}.entry-layout{min-height:100vh;display:grid;grid-template-columns:minmax(390px,38%) 1fr;background:#fbfcfe}.entry-side{position:relative;overflow:hidden;padding:46px 52px;color:#fff;background:linear-gradient(155deg,#091a36 0,#0d2d58 65%,#124a6d 100%)}.entry-side:before,.entry-side:after{content:"";position:absolute;border:1px solid rgba(89,180,255,.17);border-radius:50%}.entry-side:before{width:560px;height:560px;left:-300px;bottom:-280px}.entry-side:after{width:380px;height:380px;right:-210px;top:-190px}.brand{display:inline-flex;align-items:center;gap:11px;position:relative;z-index:1}.brand-mark{width:38px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(150deg,#5f82ff,#1d4ad0);color:#fff;box-shadow:0 8px 18px rgba(30,70,190,.25)}.brand strong,.brand small{display:block}.brand strong{font-size:17px}.brand small{font-size:10px;margin-top:3px}.brand-light{color:#fff}.brand-light small{color:#9fb3d3}.brand-dark{color:var(--text)}.brand-dark small{color:var(--muted)}.entry-copy{position:absolute;z-index:1;left:58px;right:58px;top:30%;max-width:480px}.eyebrow,.tag{display:inline-flex;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.08em}.eyebrow{padding:6px 10px;background:rgba(90,133,255,.17);color:#b5c8ff}.entry-copy h1{font-size:clamp(31px,3vw,43px);line-height:1.25;letter-spacing:-1px;margin:20px 0}.entry-copy p{font-size:13px;color:#aec0dc;line-height:1.85}.entry-copy ul{list-style:none;padding:0;margin:32px 0 0;display:grid;gap:15px}.entry-copy li{display:flex;align-items:center;gap:11px;font-size:12px;color:#d4e1f3}.entry-copy li span{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:rgba(75,154,255,.16);border:1px solid rgba(118,183,255,.25);color:#73d5ff}.entry-form-wrap{display:grid;place-items:center;padding:36px}.entry-form{width:100%;max-width:440px}.tag{padding:6px 10px;background:#edf2ff;color:var(--primary)}.entry-form h2{font-size:30px;margin:17px 0 8px}.muted{color:var(--muted);font-size:13px;line-height:1.7}.entry-form>label{display:block;font-size:12px;font-weight:700;color:#465167;margin:26px 0 8px}.input-wrap{height:51px;border:1px solid #d8dfeb;border-radius:11px;background:#fff;display:flex;align-items:center;padding:0 14px;transition:.18s}.input-wrap:focus-within{border-color:var(--primary);box-shadow:0 0 0 4px rgba(49,94,251,.1)}.input-wrap input{border:0;outline:0;flex:1;min-width:0;font:inherit;font-size:14px;color:var(--text)}.input-wrap span{color:var(--primary);font-weight:700}.privacy-note{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;margin-top:15px;border-radius:10px;background:#f2f5ff;color:#66728a;font-size:11px;line-height:1.55}.privacy-note>span{color:var(--primary)}.privacy-note p{margin:0}.primary-button{height:49px;width:100%;border:0;border-radius:11px;background:linear-gradient(180deg,#426dff,#3157e8);color:#fff;font:inherit;font-size:13px;font-weight:750;cursor:pointer;box-shadow:0 10px 23px rgba(49,94,251,.22);display:grid;place-items:center}.primary-button:hover{background:linear-gradient(180deg,#365ff0,#294acb)}.entry-form .primary-button{margin-top:20px}.terms{text-align:center;margin-top:17px;font-size:11px;color:#7a8599}.terms a{font-weight:650}.alert{border:1px solid #f2c7ce;background:#fff4f6;color:var(--danger);padding:11px 13px;border-radius:10px;font-size:12px;margin:17px 0}.simple-page{min-height:100vh;display:grid;place-items:center;padding:90px 20px 30px;background:radial-gradient(circle at 50% -20%,#eaf0ff 0,#f7f9fc 38%,#f2f5fa 100%)}.top-brand{position:absolute;top:32px;left:40px}.otp-card,.success-card{width:100%;max-width:480px;background:#fff;border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow);padding:38px 40px}.mail-icon,.success-icon{width:55px;height:55px;border-radius:16px;display:grid;place-items:center;background:#edf2ff;color:var(--primary);font-size:23px;margin-bottom:20px}.otp-card h1,.success-card h1{font-size:26px;margin:0 0 9px}.otp-card .muted strong{color:#344056}.otp-input{width:100%;height:66px;margin:24px 0 12px;border:1px solid #d5ddeb;border-radius:12px;outline:0;background:#fff;text-align:center;font:800 29px/1 monospace;letter-spacing:14px;padding-left:14px;color:#182238;box-shadow:0 4px 12px rgba(20,35,70,.04)}.otp-input:focus{border:2px solid var(--primary);box-shadow:0 0 0 4px rgba(49,94,251,.1)}.otp-meta{display:flex;justify-content:space-between;font-size:10px;color:#8994a7;margin-bottom:22px}.resend,.change-email,.security-note{text-align:center;font-size:11px}.resend{color:#808ba0;margin-top:18px}.change-email{display:block;font-weight:700;margin-top:14px}.security-note{border-top:1px solid #edf0f5;padding-top:17px;margin:23px 0 0;color:#909aad;line-height:1.6}.success-card{text-align:center}.success-icon{margin:0 auto 19px;background:#e8f8ef;color:#15975b}.link-button{margin-top:22px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.entry-layout{grid-template-columns:1fr}.entry-side{min-height:230px;padding:28px}.entry-copy{position:relative;left:auto;right:auto;top:auto;margin-top:40px}.entry-copy h1{font-size:29px}.entry-copy p,.entry-copy ul{display:none}.entry-form-wrap{padding:42px 24px}.top-brand{top:22px;left:22px}.otp-card,.success-card{padding:31px 24px}}
.consent-card-page{width:min(500px,100%);background:#fff;border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow);padding:30px 34px}.client-request{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid #edf0f5}.client-logo{width:47px;height:47px;border-radius:14px;background:linear-gradient(150deg,#355ff0,#203aa4);color:#fff;display:grid;place-items:center;font-size:17px;font-weight:800}.client-request strong,.client-request small{display:block}.client-request strong{font-size:14px}.client-request small{font-size:10px;color:var(--muted);margin-top:4px}.consent-title{text-align:center;padding:23px 0 17px}.consent-title h1{font-size:25px;margin:0 0 8px}.consent-title p{font-size:12px;color:var(--muted);margin:0}.consent-title strong{color:#344056}.scope-list{border:1px solid #e5e9f1;border-radius:13px;padding:4px 15px}.scope-item{display:flex;align-items:center;gap:11px;min-height:58px;border-bottom:1px solid #edf0f5}.scope-item:last-child{border-bottom:0}.scope-icon{width:31px;height:31px;border-radius:9px;background:#edf2ff;color:var(--primary);display:grid;place-items:center}.scope-item strong,.scope-item small{display:block}.scope-item strong{font-size:12px}.scope-item small{font-size:10px;color:var(--muted);margin-top:4px}.consent-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:20px}.secondary-button{height:49px;border-radius:11px;border:1px solid #d9e0eb;background:#fff;color:#526075;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.error-icon{width:55px;height:55px;border-radius:16px;display:grid;place-items:center;margin:0 auto 19px;background:#fff0f2;color:#c73b4a;font-size:24px;font-weight:800}



/* Shared account/auth form primitives */
.auth-shell {
  width: 100%;
  max-width: 760px;
}

.auth-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow);
}

.auth-card-compact {
  max-width: 480px;
}

.auth-card h1,
.auth-card h2,
.auth-card h3 {
  color: var(--text);
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.auth-card h2 {
  margin: 26px 0 12px;
  font-size: 18px;
}

.auth-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.auth-card p {
  line-height: 1.7;
}

.account-card-header {
  margin-bottom: 22px;
}

.account-card-header .muted {
  margin: 0;
}

.identity-summary {
  display: grid;
  gap: 5px;
  margin: 0 0 22px;
  padding: 13px 14px;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #f7f9fd;
}

.identity-summary span,
.field-hint {
  color: var(--muted);
  font-size: 11px;
}

.identity-summary strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.account-form,
.form-field {
  display: grid;
  gap: 8px;
}

.account-form {
  gap: 20px;
}

.form-field > label,
.account-form > label {
  color: #465167;
  font-size: 12px;
  font-weight: 750;
}

.form-control,
.auth-card input:not([type="hidden"]),
.auth-card select,
.auth-card textarea {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.auth-card textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-control:hover,
.auth-card input:not([type="hidden"]):hover,
.auth-card select:hover,
.auth-card textarea:hover {
  border-color: #b9c5d8;
}

.form-control:focus,
.auth-card input:not([type="hidden"]):focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(49, 94, 251, .12);
}

.form-control[aria-invalid="true"],
.auth-card input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(199, 59, 74, .1);
}

.field-hint {
  margin: 0;
  line-height: 1.55;
}

.auth-card button:not(.primary-button),
.auth-card form button:not(.primary-button) {
  min-height: 44px;
  border: 1px solid #d5ddea;
  border-radius: 10px;
  padding: 10px 15px;
  background: #fff;
  color: #526075;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s, background-color .18s, color .18s, box-shadow .18s;
}

.auth-card button:not(.primary-button):hover,
.auth-card form button:not(.primary-button):hover {
  border-color: #aebbe8;
  background: #f5f7ff;
  color: var(--primary-dark);
}

.auth-card button:focus-visible,
.auth-card a:focus-visible,
.otp-digit:focus-visible {
  outline: 3px solid rgba(49, 94, 251, .28);
  outline-offset: 2px;
}

.card-back-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
}

.auth-card nav {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.auth-card nav p {
  margin: 0;
}

.auth-card nav a {
  display: block;
  padding: 13px 14px;
  border: 1px solid #e1e7f0;
  border-radius: 11px;
  background: #fbfcff;
  font-size: 13px;
  font-weight: 700;
}

.auth-card nav a:hover {
  border-color: #b9c5f2;
  background: #f4f6ff;
}

.auth-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.auth-card th,
.auth-card td {
  padding: 11px 8px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  white-space: nowrap;
}

.auth-card th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.otp-card {
  overflow: hidden;
}

.otp-inputs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: clamp(5px, 1.8vw, 9px);
  margin: 24px 0 14px;
}

.otp-digit {
  width: 100%;
  min-width: 0;
  height: 58px;
  min-height: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  border: 1px solid #c7d0dc;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  caret-color: var(--primary);
  font: 750 25px/1 "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.otp-digit:hover {
  border-color: #aebbd0;
}

.otp-digit:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(49, 94, 251, .14);
}

.otp-inputs.has-error .otp-digit {
  border-color: #e5a4ad;
  background: #fffafb;
}

.otp-inputs.has-error .otp-digit:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(199, 59, 74, .12);
}

.otp-fallback {
  margin: 18px 0;
}

.otp-meta {
  flex-wrap: wrap;
  gap: 8px 16px;
  line-height: 1.5;
}

.primary-button:focus-visible {
  outline: 3px solid rgba(49, 94, 251, .28);
  outline-offset: 3px;
}

.primary-button:disabled,
.auth-card button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

@media (max-width: 560px) {
  .auth-card,
  .otp-card,
  .success-card {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .auth-card h1,
  .otp-card h1,
  .success-card h1 {
    font-size: 24px;
  }

  .otp-digit {
    height: 52px;
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .simple-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .top-brand {
    left: 16px;
  }

  .otp-card,
  .auth-card {
    padding-right: 15px;
    padding-left: 15px;
  }

  .otp-inputs {
    gap: 4px;
  }

  .otp-digit {
    height: 49px;
    border-radius: 9px;
    font-size: 20px;
  }
}

/* Account lists, feedback and browser-state polish */
.auth-card-wide {
  max-width: 760px;
}

.auth-card .eyebrow {
  margin: 0 0 14px;
  background: #edf2ff;
  color: var(--primary-dark);
}

.notice,
.panel {
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #fbfcff;
}

.notice {
  margin: 16px 0;
  padding: 12px 14px;
  color: #59677d;
  font-size: 12px;
  line-height: 1.6;
}

.notice.success {
  border-color: #bfe7cf;
  background: #effaf3;
  color: #21734a;
}

.notice.error {
  border-color: #f2c7ce;
  background: #fff4f6;
  color: var(--danger);
}

.consent-record {
  margin: 14px 0;
  padding: 16px;
}

.consent-record.revoked {
  background: #f7f8fa;
  opacity: .76;
}

.consent-record code {
  overflow-wrap: anywhere;
  color: #40506a;
}

.account-table-wrap {
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
}

.account-table-wrap table {
  min-width: 580px;
}

.account-table-wrap th,
.account-table-wrap td {
  padding-right: 13px;
  padding-left: 13px;
}

.form-control:disabled,
.auth-card input:not([type="hidden"]):disabled,
.auth-card select:disabled,
.auth-card textarea:disabled,
.otp-digit:disabled {
  cursor: not-allowed;
  border-color: #e0e5ed;
  background: #f2f4f7;
  color: #8a94a5;
  opacity: 1;
}

.form-control:-webkit-autofill,
.auth-card input:-webkit-autofill,
.otp-digit:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}

.form-control:autofill,
.auth-card input:autofill,
.otp-digit:autofill {
  color: var(--text);
  background: #fff;
}

@media (max-width: 560px) {
  .auth-shell {
    width: 100%;
  }

  .auth-card table:not(.account-table-wrap table) {
    display: block;
    overflow-x: auto;
  }
}

.setup-card {
  max-width: 760px;
}

.setup-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.setup-status span {
  padding: 12px 14px;
  border: 1px solid #e1e7f0;
  border-radius: 11px;
  background: #f7f9fd;
  color: var(--muted);
  font-size: 12px;
}

.setup-status strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
}

.setup-hint {
  margin: 18px 0 0;
}

@media (max-width: 480px) {
  .setup-status {
    grid-template-columns: 1fr;
  }
}


/* Prevent grid items and long auth copy from forcing horizontal overflow on narrow screens. */
.simple-page > .otp-card,
.simple-page > .success-card,
.simple-page > .auth-shell {
  min-width: 0;
}

.otp-card .muted,
.otp-card .resend,
.otp-card .security-note {
  overflow-wrap: anywhere;
}

.otp-meta span {
  min-width: 0;
}
/* Center the concise email login form without the former introduction sidebar. */
.entry-layout.login-only { grid-template-columns: 1fr; }
.login-only .entry-form-wrap { min-height: 100vh; }
.auth-form-brand { margin-bottom: 26px; }
