/* 登录页（PD 11-21 按官网首页重做）：整页深色，极光光束铺满（login-aurora），左边口号和「此刻，它在…」，右边登录卡片。
   只给 login.html 用；/app 里的旧登录门禁仍走 customer-auth.css，不受影响。
   表单的结构由 login.html 和 customer-auth.js 生成，这里只管样子。
   颜色沿用极光基础的变量名，在 .al-gate 里换成深色值；弹窗不在 .al-gate 里，仍是浅色。 */
html, body.al-page { margin: 0; min-height: 100%; background: #090A0C; }
body.al-page { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); }
.al-page *, .al-page *::before, .al-page *::after { box-sizing: border-box; }
@property --la-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.al-gate { --pad: max(48px, calc((100vw - 1216px) / 2)); --field: rgba(255,255,255,.045);
  --ink: #FFFFFF; --body: #D5DBE0; --sec: #A3ADB5; --muted: #8A949C; --faint: #6B747C;
  --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.1); --soft: rgba(255,255,255,.07); --soft-2: rgba(255,255,255,.05);
  --cyan: rgba(142,229,195,.75); --cyan-ring: rgba(142,229,195,.14); --teal: #8FE8D8; --teal-h: #C9FBE8; --teal-soft: rgba(142,229,195,.14);
  --red: #FF9B8F; --dot-err: #F08A7B; --dot-ok: #5FD3A0;
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 432px); gap: 72px; align-items: center; min-height: 100dvh; padding: 112px var(--pad) 88px; background: #090A0C; color: var(--ink); color-scheme: dark; }

/* 左：品牌 + 一句口号 + 极光此刻在做的事 */
/* 口号在一屏里上下居中；右边卡片比一屏高（注册）时它留在原处，不跟着被拉到页面中间。 */
.al-visual { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: calc(100dvh - 200px); color: #FFFFFF; }
.al-brand { position: absolute; top: -82px; left: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.al-brand img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.al-kicker { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; color: #C9D1D6; }
.al-claim h1 { max-width: 6.2em; margin: 14px 0 0; padding-bottom: .12em; font-size: clamp(52px, 6vw, 88px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; background: linear-gradient(180deg, #FFFFFF 40%, #B6C2CB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.al-gate:not(:lang(zh-CN)) .al-claim h1 { max-width: 11em; font-size: clamp(44px, 5vw, 72px); letter-spacing: -.04em; }
.al-doing { min-height: 1.3em; margin: 26px 0 0; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: #9AA3AB; }
/* 其他语言的短语长，会折成两行：先把两行的高度留出来，打字时口号不上下跳。 */
.al-gate:not(:lang(zh-CN)) .al-doing { min-height: 2.6em; }
.al-doing b { font-weight: 600; background: linear-gradient(90deg, #7DF0C2, #69D8EA 48%, #9D9BF5); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.al-doing b + i { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: #8FE8D8; animation: al-caret 1s steps(1) infinite; }
@keyframes al-caret { 50% { opacity: 0; } }

/* 右：表单 */
.al-panel { display: flex; flex-direction: column; min-width: 0; }
.al-panel > .auth-language { position: absolute; top: 28px; right: var(--pad); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.auth-language select { appearance: none; height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C9D1D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; color: var(--body); font: inherit; font-size: 13px; cursor: pointer; }
.auth-language select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.al-page .login-card { position: relative; width: 100%; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 36px 36px 30px; border: 1px solid rgba(206,244,242,.12); border-radius: 20px; background: linear-gradient(180deg, rgba(16,20,26,.74), rgba(10,12,16,.82)); -webkit-backdrop-filter: blur(28px) saturate(1.25); backdrop-filter: blur(28px) saturate(1.25); box-shadow: 0 50px 140px -50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
/* 卡片边上一圈慢慢转的光，和官网产品窗口同款；::after 是它的柔光。 */
.al-page .login-card::before, .al-page .login-card::after { content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--la-a), rgba(142,229,195,0) 0deg, #8EE5C3 36deg, #53BFD5 80deg, #7C78D8 128deg, rgba(124,120,216,0) 176deg, rgba(142,229,195,0) 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .9; animation: al-orbit 9s linear infinite; }
.al-page .login-card::after { inset: -3px; padding: 5px; filter: blur(16px); opacity: .5; }
@keyframes al-orbit { to { --la-a: 360deg; } }
.al-page .login-card[hidden] { display: none; }
.al-head { display: flex; flex-direction: column; gap: 6px; }
.al-page .login-card h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.al-page .login-card .login-intro { margin: 0; font-size: 14px; line-height: 1.6; color: var(--sec); }
.al-page .login-card > h2 + .login-intro { margin-top: -10px; }

/* 手机 / 邮箱：One 的分段 */
.al-page .auth-channel-tabs { display: flex; gap: 2px; padding: 4px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: var(--soft-2); }
.al-page .auth-channel-tabs button { flex: 1; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--sec); font-size: 14px; cursor: pointer; }
.al-page .auth-channel-tabs button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: var(--ink); font-weight: 500; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }

/* 输入框 */
.al-page .login-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.al-page .login-field[hidden] { display: none; }
.al-page .login-field > span { font-size: 13px; font-weight: 500; color: var(--body); }
.al-page .login-card input:not([type="checkbox"]) { width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .14s ease, box-shadow .14s ease, background .14s ease; }
.al-page .login-card input::placeholder { color: var(--faint); }
.al-page .login-card input:focus { border-color: var(--cyan); background: rgba(255,255,255,.06); box-shadow: 0 0 0 3px var(--cyan-ring), 0 0 28px -6px rgba(83,191,213,.5); }
.al-page .login-card input:user-invalid { border-color: var(--dot-err); }
.al-page .auth-phone-row, .al-page .auth-code-row { display: flex; gap: 8px; }
.al-page .auth-phone-prefix { flex: none; display: inline-flex; align-items: center; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--field); color: var(--body); font-size: 14px; white-space: nowrap; }
.al-page .auth-code-row button { flex: none; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; }
.al-page .auth-code-row button:disabled { background: var(--soft-2); color: var(--muted); cursor: default; }

/* 密码：显示 / 隐藏用眼睛图标；文字留给读屏 */
.al-page .password-field { position: relative; display: block; }
.al-page .password-field input { padding-right: 48px; }
.al-page .password-field button { position: absolute; top: 50%; right: 7px; width: 32px; height: 32px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 7px; background: transparent; color: var(--sec); font-size: 0; cursor: pointer; }
.al-page .password-field button::before { content: ""; display: block; width: 16px; height: 16px; margin: auto; background: currentColor; -webkit-mask: var(--ab-i-eye) center / contain no-repeat; mask: var(--ab-i-eye) center / contain no-repeat; }
.al-page .password-field button:hover { background: var(--soft); color: var(--ink); }
.al-page .password-field:has(input[type="text"]) button { background: var(--teal-soft); color: var(--teal); }

.al-page .login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.al-page .login-options label { display: inline-flex; align-items: center; gap: 8px; color: var(--body); cursor: pointer; }
.al-page .login-options input { width: 16px; height: 16px; margin: 0; accent-color: #8EE5C3; }
.al-page .login-options > button, .al-page .auth-switch-line button { padding: 0; border: 0; background: none; color: var(--teal); font-size: 14px; font-weight: 500; cursor: pointer; }
.al-page .login-options > button:hover, .al-page .auth-switch-line button:hover { text-decoration: underline; text-underline-offset: 3px; }
.al-page .auth-switch-line { margin: 0; text-align: center; font-size: 14px; color: var(--sec); }
.al-page .auth-switch-line[hidden] { display: none; }
.al-page .login-options + .auth-switch-line { margin-top: -6px; text-align: right; font-size: 13px; }
.al-page .login-options + .auth-switch-line button { font-size: 13px; }

/* 出错：只在提交以后出现，红字 + 图标，不用红底 */
.al-page .form-error { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--red); }
.al-page .form-error[hidden] { display: none; }
.al-page .form-error::before, .al-page .auth-feedback[data-tone="error"]::before { content: ""; width: 14px; height: 14px; flex: none; margin-top: 2px; background: currentColor; -webkit-mask: var(--ab-i-alert) center / contain no-repeat; mask: var(--ab-i-alert) center / contain no-repeat; }
.al-page .auth-feedback { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; line-height: 1.6; }
.al-page .auth-feedback[hidden] { display: none; }
.al-page .auth-feedback[data-tone="error"] { gap: 6px; color: var(--red); }
.al-page .auth-feedback[data-tone="success"], .al-page .auth-feedback[data-tone="info"] { padding: 10px 12px; border-radius: 10px; background: var(--soft-2); color: var(--body); }
.al-page .auth-feedback[data-tone="success"]::before, .al-page .auth-feedback[data-tone="info"]::before { content: ""; width: 14px; height: 14px; flex: none; margin-top: 3px; background: var(--sec); -webkit-mask: var(--ab-i-info) center / contain no-repeat; mask: var(--ab-i-info) center / contain no-repeat; }
.al-page .auth-feedback[data-tone="success"]::before { background: var(--dot-ok); -webkit-mask-image: var(--ab-i-check-circle); mask-image: var(--ab-i-check-circle); }
/* 注册还没开放：表单变淡、不能填 */
.al-page .customer-auth-card[data-closed] :is(.login-field, .auth-channel-tabs, .auth-consent, .auth-divider, .auth-google-button) { opacity: .5; pointer-events: none; }

/* 主按钮：官网那枚浅色圆角按钮，不带高光（PD 11-21）；提交中右边转一个小圈 */
.al-page .login-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 4px; padding: 0 16px; border: 0; border-radius: 999px; background: #E4E7EA; color: #0B0C0E; font-size: 15px; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .2s ease, transform .12s ease; }
.al-page .login-submit:hover:not(:disabled) { background: #FFFFFF; }
.al-page .login-submit:active:not(:disabled) { transform: scale(.985); }
.al-page .login-submit:disabled { cursor: default; opacity: .6; }
.al-page .login-submit b:empty:not(.login-spinner) { display: none; }
.al-page .login-spinner { width: 14px; height: 14px; border: 2px solid rgba(11,12,14,.25); border-top-color: #0B0C0E; border-radius: 50%; animation: al-spin .8s linear infinite; }
@keyframes al-spin { to { transform: rotate(360deg); } }

/* 或 / Google / 条款 */
.al-page .auth-google-section { display: flex; flex-direction: column; gap: 12px; }
.al-page .auth-divider { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.al-page .auth-divider::before, .al-page .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.al-page .auth-google-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.al-page .auth-google-button:hover:not(:disabled) { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.al-page .auth-google-button:disabled { cursor: not-allowed; opacity: .5; }
.al-page .auth-legal { margin: 0; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.al-page .auth-legal a, .al-page .auth-consent a { color: var(--sec); text-underline-offset: 3px; }
.al-page .auth-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--sec); }
.al-page .auth-consent input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: #8EE5C3; }

/* 注册、找回、短信登录卡片顶上的「返回」 */
.al-page .auth-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; height: 30px; margin: -6px 0 -6px -8px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--sec); font-size: 13px; cursor: pointer; }
.al-page .auth-back:hover { background: var(--soft); color: var(--ink); }

.login-form-foot { position: absolute; right: var(--pad); bottom: 26px; display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); }
.login-form-foot a { color: var(--sec); text-decoration: none; }
.login-form-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 登录前用不到的问卷、账号安全弹窗（登录页里不会打开）：给一个干净的外框 */
.al-page dialog.auth-survey-dialog { width: min(520px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 16px; box-shadow: var(--sh-menu); font-family: var(--font); }

/* 窄屏：口号收到卡片上面，光幕从屏幕底边升起 */
@media (max-width: 860px) {
  .al-gate { --pad: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 26px; padding: 84px 20px 28px; }
  .al-visual { position: relative; top: auto; display: block; min-height: 0; }
  .al-brand { top: -58px; left: 0; font-size: 16px; }
  .al-brand img { width: 26px; height: 26px; }
  .al-kicker { font-size: 14px; }
  .al-claim h1, .al-gate:not(:lang(zh-CN)) .al-claim h1 { max-width: none; margin-top: 10px; font-size: clamp(32px, 9vw, 48px); line-height: 1.1; }
  .al-doing { margin-top: 12px; font-size: 17px; }
  .al-panel > .auth-language { top: 20px; }
  .al-page .login-card { gap: 14px; padding: 24px 20px 22px; border-radius: 18px; }
  .al-page .login-card h2 { font-size: 22px; }
  .login-form-foot { position: static; justify-content: center; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .al-page .login-spinner { animation-duration: 2s; } .al-doing b + i { display: none; } .al-page .login-card::before, .al-page .login-card::after { animation: none; } }

/* UI 11-03（Owner：同事做的 UI 按极光标准统一）：注册里的「组织」下拉和输入框同款；推荐码折叠用极光的箭头，不用浏览器默认三角。 */
.al-page .login-card select { appearance: none; width: 100%; height: 44px; margin: 0; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C9D1D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; outline: none; transition: border-color .14s ease, box-shadow .14s ease; }
.al-page .login-card select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-ring); }
.al-page .login-card [data-referral-section] { display: flex; flex-direction: column; gap: 10px; }
.al-page .login-card [data-referral-section] > summary { display: inline-flex; align-items: center; gap: 6px; width: fit-content; list-style: none; color: var(--teal); font-size: 13px; cursor: pointer; }
.al-page .login-card [data-referral-section] > summary::-webkit-details-marker { display: none; }
.al-page .login-card [data-referral-section] > summary::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .14s ease; }
.al-page .login-card [data-referral-section][open] > summary::before { transform: rotate(90deg); }
.al-page .login-card [data-referral-section] > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.al-page .login-card [data-preview-org] { align-self: flex-start; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .al-page .login-card [data-referral-section] > summary::before { transition: none; } }
.al-page .login-card [data-referral-clear] { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--teal); font: inherit; font-size: 13px; cursor: pointer; }
.al-page .login-card [data-referral-clear]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.al-page .auth-signup-credentials { display: contents; border: 0; padding: 0; margin: 0; min-width: 0; }
