/* Yellow handoff: authentication, account settings and administration.
   Shared presentation only; forms, permissions and server responses remain native. */
:root {
  --bg:#f8f9f9; --card:#fff; --panel:#fff; --line:#e7ebec;
  --text:#292d2e; --muted:#687176; --sub:#687176;
  --yellow:#ffe66a; --yellow-soft:#fff8d9; --yellow-nav:#fff5c2;
  --coral:#816b22; --coral-dark:#6b5719; --soft:#fff8d9;
  --green:#34765b; --green-soft:#eaf5ef; --green-bg:#eaf5ef;
  --error:#b9483c; --error-bg:#fff4f1; --shadow:none;
}
* { box-sizing:border-box; }
body { margin:0; color:var(--text); font-family:Arial,"Microsoft YaHei",sans-serif; font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--coral); }
:focus-visible { outline:2px solid #a28822; outline-offset:3px; }
.brand-mark { display:grid; place-items:center; flex:none; width:30px; height:34px; border-radius:8px; background:var(--yellow); color:var(--text); box-shadow:none; }
.brand-mark svg { width:23px; height:23px; display:block; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.auth-enterprise,.result-enterprise { min-height:100vh; background:#fff; }
.auth-header { display:flex; align-items:center; justify-content:space-between; gap:20px; max-width:1440px; margin:auto; padding:34px 56px; }
.auth-header .brand { display:flex; align-items:center; gap:14px; color:var(--text); font-size:24px; font-weight:650; text-decoration:none; }
.auth-header>.back { color:var(--muted); font-size:14px; text-decoration:none; }
.login-page { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; width:min(1040px,calc(100% - 64px)); gap:76px; margin:39px auto 80px; }
.intro { min-height:550px; padding:46px 42px; border:0; border-radius:22px; background:#fff9df; box-shadow:none; }
.intro h1 { margin:0 0 20px; font-size:30px; line-height:1.55; font-weight:500; letter-spacing:0; }
.intro>p { margin:0; color:#756a42; font-size:14px; line-height:1.9; }
.features { display:grid; gap:28px; margin-top:56px; }
.feature { display:grid; grid-template-columns:40px minmax(0,1fr); column-gap:20px; border:0; padding:0; background:transparent; }
.feature i { grid-row:1/3; align-self:center; display:grid; place-items:center; width:36px; height:38px; border-radius:10px; color:#9676db; background:#eee6ff; }
.feature:nth-child(2) i { color:#e89a57; background:#fff0d9; }
.feature:nth-child(3) i { color:#4b9f96; background:#ddf4ef; }
.feature svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.feature b { font-size:16px; font-weight:600; }
.feature span { margin-top:4px; color:#756a42; font-size:13px; line-height:1.7; }
.login-card,.auth-card { min-width:0; margin:0; padding:4px 0 0; border:0; border-radius:0; background:#fff; box-shadow:none; }
.login-card h2,.auth-card h2 { margin:0 0 10px; color:var(--text); font-size:28px; line-height:1.5; font-weight:500; }
.hint { margin:0 0 32px; color:var(--muted); font-size:13px; line-height:1.8; }
.form-group { margin-bottom:20px; }
.form-group label { display:block; margin-bottom:8px; color:#626b70; font-size:13px; font-weight:400; }
.form-group input { width:100%; height:46px; padding:0 13px; border:1px solid #dce2e4; border-radius:9px; background:#fff; color:var(--text); font-size:14px; outline:none; transition:border-color .16s,box-shadow .16s; }
.form-group input::placeholder { color:#858d91; }
.form-group input:focus { border-color:#c3a73b; box-shadow:0 0 0 3px #fff5c2; }
.form-group input.email-valid { border-color:var(--green); }
.form-group input.email-invalid { border-color:var(--error); }
.email-check { min-height:18px; margin-top:5px; font-size:12px; line-height:1.5; }
.email-check.valid { color:var(--green); }
.email-check.invalid { color:var(--error); }
.submit-btn,.primary,.code-btn { min-height:46px; padding:10px 18px; border:1px solid #f0dc88; border-radius:10px; background:var(--yellow-soft); color:var(--text); font-size:14px; font-weight:500; transition:background .16s,border-color .16s; }
.submit-btn:hover,.primary:hover,.code-btn:hover { background:var(--yellow-nav); border-color:#d8bd54; }
.submit-btn:disabled,.primary:disabled,.code-btn:disabled { opacity:.55; cursor:not-allowed; }
.submit-btn,.main-btn { width:100%; }
.error-msg,.success-msg { display:none; margin-bottom:16px; padding:12px 14px; border:1px solid transparent; border-radius:9px; font-size:13px; line-height:1.65; }
.error-msg { color:var(--error); background:var(--error-bg); border-color:#f0d1cb; }
.success-msg { color:var(--green); background:var(--green-soft); border-color:#cfe7d7; }
.success-msg a { color:var(--green); }
.switch-link { margin-top:22px; color:var(--muted); font-size:13px; text-align:center; }
.switch-link a { margin-left:8px; color:var(--coral); font-weight:400; text-decoration:none; }
.forgot-entry { margin:-3px 0 24px; color:var(--coral); font-size:13px; text-align:right; }
.forgot-entry a { text-decoration:none; }
.code-row { display:grid; grid-template-columns:minmax(0,1fr) 128px; gap:8px; }
.code-row .submit-btn { padding-inline:8px; font-size:13px; }
.pwd-strength,.pwd-meter { height:5px; margin-top:8px; border-radius:5px; overflow:hidden; background:#f0f2f2; }
.pwd-strength-fill,.pwd-meter i { display:block; width:0; height:100%; transition:width .2s,background .2s; }
.auth-steps { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:-10px 0 22px; }
.auth-step { padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:#f8f9f9; color:var(--muted); font-size:12px; }
.auth-step b { display:block; font-size:13px; font-weight:500; }
.auth-step.active { border-color:#f0dc88; background:var(--yellow-soft); color:#76601b; }
.result-enterprise .auth-card { width:min(480px,calc(100% - 40px)); margin:65px auto 100px; padding:32px; border:1px solid var(--line); border-radius:16px; }
.result-enterprise .auth-card h2 { font-size:25px; }
.platform-inline-entry { display:flex; align-items:center; width:100%; min-height:114px; gap:14px; margin-top:28px; padding:24px; border:0; border-radius:16px; background:#f6f7f7; text-align:left; color:var(--text); }
.platform-inline-entry b,.platform-inline-entry small { display:block; }
.platform-inline-entry b { font-size:15px; font-weight:600; }
.platform-inline-entry small { margin-top:7px; color:#626c70; font-size:13px; }
.platform-inline-entry-icon { display:none; }
.platform-inline-entry-arrow { margin-left:auto; font-size:22px; color:var(--muted); }
.account-enterprise { min-height:100vh; background:var(--bg); }
.account-enterprise .page { width:min(1152px,calc(100% - 64px)); margin:auto; padding:36px 0 64px; }
.account-enterprise .top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; }
.account-enterprise .brand { display:flex; align-items:center; gap:14px; font-size:25px; font-weight:600; }
.account-enterprise .back { padding:10px 16px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--text); font-size:14px; text-decoration:none; }
.account-shell { display:grid; grid-template-columns:232px minmax(0,1fr); gap:32px; min-height:535px; }
.account-enterprise .sidebar { padding:30px 18px; border:1px solid var(--line); border-radius:14px; background:#fcfdfd; }
.avatar { display:grid; place-items:center; width:38px; height:38px; margin:0 12px 12px; border-radius:12px; background:#fff5c2; color:#75601f; font-size:18px; }
.identity { padding-inline:12px; }
.identity b,.identity span { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.identity b { font-size:15px; font-weight:500; }
.identity span { margin-top:5px; color:var(--muted); font-size:13px; }
.tabs { display:grid; gap:7px; margin-top:25px; }
.tab { min-height:50px; padding:0 16px; border:0; border-radius:10px; background:transparent; color:var(--muted); text-align:left; font-size:14px; font-weight:400; }
.tab:hover { background:#f3f5f5; }
.tab.active { background:var(--yellow-nav); color:#62552b; }
.account-enterprise .content { min-width:0; padding:32px 40px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.panel { display:none; }
.panel.active { display:block; }
.account-enterprise h1 { margin:0 0 10px; font-size:21px; font-weight:600; }
.account-enterprise form { max-width:560px; }
.field-note { margin-top:7px; color:var(--muted); font-size:12px; line-height:1.6; }
.primary { min-width:112px; }
.message { display:none; margin-bottom:20px; padding:12px 14px; border:1px solid transparent; border-radius:9px; font-size:13px; }
.message.error { display:block; color:var(--error); background:var(--error-bg); border-color:#f0d1cb; }
.message.success { display:block; color:var(--green); background:var(--green-soft); border-color:#cfe7d7; }
.security-note { max-width:560px; margin-top:24px; padding:14px 16px; border:1px solid var(--line); border-radius:10px; background:#f8f9f9; color:var(--muted); font-size:13px; line-height:1.7; }
.admin-enterprise { --bg:#f8f9f9; --line:#e7ebec; --text:#292d2e; --muted:#687176; --sub:#687176; --coral:#816b22; --shadow:none; background:var(--bg); }
.admin-enterprise .shell { grid-template-columns:214px minmax(0,1fr); }
.admin-enterprise .sidebar { padding:26px 15px 18px; border-color:var(--line); }
.admin-enterprise .brand { gap:12px; padding:0 10px 26px; font-size:18px; font-weight:650; }
.admin-enterprise .brand-mark { width:26px; height:30px; border-radius:7px; background:var(--yellow); color:var(--text); }
.admin-enterprise .nav { gap:4px; }
.admin-enterprise .nav button { min-height:44px; border-radius:10px; color:var(--muted); font-weight:400; }
.admin-enterprise .nav button.active { color:#62552b; background:var(--yellow-nav); }
.admin-enterprise .main { padding:30px 34px; }
.admin-enterprise .topbar h1 { font-size:28px; font-weight:600; }
.admin-enterprise .metric,.admin-enterprise .workspace,.admin-enterprise .survey-card,.admin-enterprise .activity-summary-card { border-color:var(--line); border-radius:13px; box-shadow:none; }
.admin-enterprise .metric span,.admin-enterprise th { font-weight:400; }
.admin-enterprise .primary-action { background:var(--yellow); color:var(--text); border-radius:9px; font-weight:500; }
.admin-enterprise :is(input,select,textarea):focus { border-color:#c3a73b; box-shadow:0 0 0 3px #fff5c2; }
.admin-enterprise .workspace { overflow:hidden; }
@media(max-width:1000px) {
  .auth-header { padding:25px 32px; }
  .login-page { gap:32px; margin-top:28px; }
  .intro { padding:32px 28px; }
  .intro h1 { font-size:27px; }
  .features { margin-top:36px; }
  .account-shell { gap:20px; grid-template-columns:200px minmax(0,1fr); }
  .account-enterprise .content { padding:28px; }
  .admin-enterprise .main { padding:26px 22px; }
}
@media(max-width:760px) {
  .auth-header { padding:22px 24px; }
  .auth-header .brand { font-size:21px; }
  .login-page { grid-template-columns:1fr; gap:36px; width:min(480px,calc(100% - 48px)); margin:24px auto 48px; }
  .login-card,.auth-card { grid-row:1; }
  .intro { min-height:0; padding:30px 26px; border-radius:16px; }
  .intro h1 { font-size:25px; }
  .features { gap:22px; margin-top:30px; }
  .feature { column-gap:14px; }
  .form-group input { font-size:16px; }
  .result-enterprise .auth-card { margin-top:24px; padding:26px; }
  .account-enterprise .page { width:calc(100% - 32px); padding:22px 0 44px; }
  .account-enterprise .brand { font-size:21px; gap:10px; }
  .account-enterprise .top { margin-bottom:20px; }
  .account-shell { grid-template-columns:1fr; gap:16px; }
  .account-enterprise .sidebar { padding:14px; }
  .account-enterprise .avatar,.account-enterprise .identity { display:none; }
  .tabs { grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; gap:6px; }
  .tab { padding:0 6px; text-align:center; font-size:13px; }
  .account-enterprise .content { padding:24px 20px; }
  .account-enterprise .back { padding:8px 12px; white-space:nowrap; font-size:13px; }
  .code-row { grid-template-columns:minmax(0,1fr) 116px; }
  .admin-enterprise .shell { grid-template-columns:1fr; }
  .admin-enterprise .sidebar { position:static; height:auto; padding:20px 16px; border-right:0; border-bottom:1px solid var(--line); }
  .admin-enterprise .brand { padding:0 0 16px; }
  .admin-enterprise .nav { display:flex; overflow:auto; padding-bottom:6px; }
  .admin-enterprise .nav button { width:auto; flex:none; white-space:nowrap; }
  .admin-enterprise .side-actions { position:static; display:flex; margin-top:10px; }
  .admin-enterprise .main { padding:24px 16px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto; transition:none; } }
