/* Xiaoming Cloud authentication layout. */
.n-access-page { min-height:100vh; min-height:100svh; background:var(--surface); isolation:isolate; }
.n-access-page::before { inset:0 auto 0 0; width:52%; height:auto; border:0; border-radius:0; background:#eef2ff; z-index:-1; }
.n-access-page .page-navigation { max-width:1400px; height:104px; padding:0 56px; }
.n-access-page .brand { gap:11px; }
.n-access-page .brand img { width:40px; height:40px; border-radius:12px; }
.n-access-page .brand-wordmark strong { font-size:22px; font-weight:650; letter-spacing:.4px; }
.n-access-page .icon-button { width:40px; height:40px; border-radius:12px; border-color:transparent; color:var(--secondary); }
.n-access-page .icon-button:hover { background:var(--surface-hover); transform:none; }
.n-access { display:grid; grid-template-columns:1.08fr 1fr; align-items:center; gap:72px; max-width:1288px; min-height:calc(100svh - 178px); margin:0 auto; padding:20px 40px 36px; }
.xm-auth-intro { min-width:0; align-self:center; padding:0 10px 0 0; }
.xm-auth-scene { position:relative; width:100%; margin:0 0 20px; }
.xm-scene-art { display:block; width:100%; height:auto; }
.xm-scene-sign { position:absolute; left:43.8%; top:72%; display:flex; align-items:center; gap:7px; font-size:11px; font-weight:600; color:#262626; }
.xm-scene-sign img { width:22px; height:22px; border-radius:6px; object-fit:contain; }
.xm-sign-dot { width:5px; height:5px; margin-left:14px; border-radius:50%; background:#4d6bfe; }
.xm-auth-features { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; padding-top:18px; margin-top:0; border-top:1px solid #e8eaee; }
.xm-auth-features>div { display:flex; align-items:center; gap:8px; min-width:0; }
.xm-feature-mark { width:6px; height:6px; border:1.5px solid #4d6bfe; border-radius:50%; flex:none; }
.xm-auth-features strong { display:block; font-size:12px; font-weight:600; color:var(--heading); }
.n-auth-area { min-width:0; padding-left:28px; }
.n-access-page .auth-container { width:100%; }
.n-access-page .form-shell { width:100%; max-width:384px; padding:0; margin:0 auto; border:0; border-radius:0; background:transparent; box-shadow:none; animation:none; }
.xm-auth-tabs { display:flex; gap:27px; border-bottom:1px solid var(--outline); margin:0 0 38px; }
.xm-auth-tabs a { position:relative; padding:0 2px 14px; color:var(--secondary); font-size:14px; line-height:22px; }
.xm-auth-tabs a[aria-current="page"] { color:var(--primary); font-weight:600; }
.xm-auth-tabs a[aria-current="page"]::after { position:absolute; content:""; height:3px; inset:auto 0 -1px; background:var(--primary); border-radius:3px 3px 0 0; }
.xm-auth-tabs a:hover { color:var(--primary); }
.xm-auth-back { display:inline-flex; align-items:center; margin:0 0 22px; color:var(--secondary); font-size:12px; min-height:32px; }
.xm-auth-back:hover { color:var(--primary); }
.n-access-page .form-shell h2 { font-size:18px; font-weight:500; line-height:1.5; margin:0 0 24px; color:var(--heading); }
.n-access-page .field-group { margin-bottom:20px; }
.n-access-page .field-label { margin-bottom:9px; font-size:12px; line-height:20px; font-weight:550; color:var(--heading); }
.n-access-page .field-wrapper input { height:50px; padding:12px 14px; border:1px solid var(--outline); border-radius:10px; background:var(--input); font-size:14px; line-height:24px; }
.n-access-page .field-wrapper input::placeholder { color:var(--tertiary); }
.n-access-page .field-wrapper input:hover { border-color:var(--secondary); }
.n-access-page .field-wrapper input:focus { border-color:var(--primary); box-shadow:0 0 0 3px #4d6bfe12; }
.n-access-page .field-wrapper input[aria-invalid="true"] { border-color:var(--error); }
.n-access-page .field-wrapper input[name="password"],.n-access-page .field-wrapper input[name="password_confirmation"] { padding-right:48px; }
.n-access-page .field-wrapper input[name="email_code"] { padding-right:116px; }
.n-access-page .password-toggle { height:50px; width:46px; }
.n-access-page .get-code { top:5px; right:5px; height:40px; font-size:11px; }
.n-access-page .form-options { margin:3px 0 25px; font-size:12px; gap:8px; flex-wrap:wrap; }
.n-access-page .checkbox-label { line-height:1.7; }
.n-access-page .checkbox-visual { border-radius:4px; }
.n-access-page .button { min-height:50px; border-radius:10px; font-size:14px; font-weight:550; }
.n-access-page .button-primary { color:#fff; box-shadow:0 4px 0 #2626260d; }
.n-access-page .button-primary:hover { transform:none; }
.n-access-page .auth-switch { padding-top:21px; font-size:12px; }
.n-access-page .auth-preview { display:flex; align-items:center; justify-content:center; gap:7px; padding:0; margin-top:21px; min-height:36px; border:0; border-radius:0; font-size:11px; color:var(--secondary); }
.n-access-page .auth-preview::before { content:""; width:6px; height:6px; border:1px solid currentColor; border-radius:50%; }
.n-access-page .auth-preview:hover { background:transparent; color:var(--primary); }
.n-access-page .auth-footer { max-width:1400px; padding:22px 56px 26px; font-size:10px; line-height:1.6; color:var(--tertiary); }
.n-access-page #auth-captcha { max-width:100%; margin-bottom:18px; font-size:12px; line-height:1.8; overflow-x:auto; }
.n-access-page #auth-server-error:not([hidden]) { margin:0 0 16px; }
:root[data-theme="dark"] .n-access-page::before { background:#282a2f; }
:root[data-theme="dark"] .xm-auth-features { border-color:#41444c; }
:root[data-theme="dark"] .xm-feature-mark { border-color:#90a7ff; }
:root[data-theme="dark"] .xm-scene-art { filter:brightness(.83) saturate(.85); }
:root[data-theme="dark"] .xm-scene-sign { color:#262626; }
:root[data-theme="dark"] .n-access-page .button-primary { color:#212327; box-shadow:none; }
@media(min-width:1600px) {
  .n-access { min-height:calc(100svh - 206px); max-width:1380px; gap:110px; padding-top:28px; padding-bottom:40px; }
  .n-access-page .page-navigation { height:124px; max-width:1510px; }
  .n-access-page .auth-footer { max-width:1510px; }
  .n-access-page .form-shell { max-width:404px; }
}
@media(max-width:1023px) {
  .n-access-page .page-navigation { height:94px; padding:0 32px; }
  .n-access { gap:40px; padding:28px 32px 40px; min-height:calc(100svh - 166px); grid-template-columns:1fr 1fr; }
  .n-auth-area { padding-left:6px; }
  .xm-auth-intro { padding-right:0; }
  .xm-auth-features { gap:15px; }
  .xm-scene-sign { font-size:9px; gap:5px; }
  .xm-scene-sign img { width:18px; height:18px; }
  .xm-sign-dot { margin-left:5px; }
  .n-access-page .auth-footer { padding-left:32px; padding-right:32px; }
}
@media(max-width:767px) {
  .n-access-page { overflow:hidden; }
  .n-access-page::before { width:100%; height:80px; bottom:auto; }
  .n-access-page .page-navigation { height:80px; padding:0 24px; }
  .n-access-page .brand img { width:34px; height:34px; border-radius:10px; }
  .n-access-page .brand-wordmark strong { font-size:19px; }
  .n-access-page .icon-button { width:38px; height:38px; }
  .n-access { display:block; max-width:500px; min-height:0; padding:18px 28px 20px; }
  .xm-auth-intro { display:none; }
  .xm-auth-scene,.xm-auth-features { display:none; }
  .n-auth-area { padding:0; }
  .n-access-page .form-shell { max-width:none; margin:0; padding:0; }
  .xm-auth-tabs { margin-bottom:26px; gap:25px; }
  .xm-auth-tabs a { font-size:13px; padding-bottom:12px; }
  .n-access-page .form-shell h2 { font-size:18px; margin-bottom:24px; }
  .n-access-page .field-group { margin-bottom:19px; }
  .n-access-page .field-wrapper input { font-size:16px; }
  .n-access-page .field-label { font-size:12px; }
  .n-access-page .form-options { margin-bottom:23px; }
  .n-access-page .button { min-height:50px; }
  .n-access-page .auth-footer { justify-content:center; padding:22px 24px 28px; }
  .xm-auth-back { margin-bottom:22px; }
}
@media(max-width:374px) {
  .n-access-page .page-navigation { padding:0 20px; }
  .n-access { padding-left:22px; padding-right:22px; }
  .n-access-page .form-options { font-size:11px; }
}
/* Keep all authentication inputs stable on iPad and touch devices. */
@media(max-width:1023px),(hover:none) and (pointer:coarse){.n-access-page .field-wrapper input{font-size:16px}}
