.auth-page { display: grid; min-height: 100dvh; grid-template-columns: clamp(420px, 44vw, 680px) minmax(520px, 1fr); background: var(--ds-surface); }
.auth-brand { display: grid; align-content: center; gap: 34px; padding: clamp(40px, 7vw, 96px); overflow: hidden; background: var(--ds-nav); color: var(--ds-on-dark); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup > div { display: grid; }
.brand-lockup strong { color: #fff; font-size: 17px; }
.brand-lockup small { color: var(--ds-on-dark-muted); }
.auth-signal { max-width: 620px; }
.auth-signal > span { display: block; margin-bottom: 10px; color: #95abff; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.auth-signal h1 { margin-bottom: 16px; color: #fff; font-size: clamp(36px, 4.3vw, 58px); }
.auth-signal p { color: var(--ds-on-dark-muted); font-size: 16px; }
.auth-feature-list { display: grid; gap: 14px; }
.auth-feature-list > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; }
.auth-feature-list > div > svg { width: 20px; height: 20px; color: #95abff; }
.auth-feature-list > div > span { display: grid; }
.auth-feature-list strong { color: #fff; }
.auth-feature-list small { color: var(--ds-on-dark-muted); }
.auth-console-preview { max-width: 640px; overflow: hidden; border: 1px solid #344258; border-radius: 12px; background: #151f2e; }
.auth-preview-head { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid #344258; }
.auth-preview-head span { display: flex; align-items: center; gap: 7px; }
.auth-preview-head em { color: var(--ds-on-dark-muted); font-size: 11px; font-style: normal; }
.auth-preview-head em b { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--ds-success); }
.auth-preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-preview-stats > div { display: grid; gap: 4px; padding: 16px; border-right: 1px solid #344258; }
.auth-preview-stats > div:last-child { border-right: 0; }
.auth-preview-stats small { color: var(--ds-on-dark-muted); }
.auth-preview-stats strong { color: #fff; }
.auth-preview-table { display: grid; padding: 0 16px 14px; }
.auth-preview-table > div { display: grid; min-height: 54px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 8px 0; border-top: 1px solid #344258; }
.auth-preview-table span, .auth-preview-table small { grid-column: 1; }
.auth-preview-table b { grid-column: 2; grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-success); }
.auth-preview-table small { color: var(--ds-on-dark-muted); }
.auth-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.auth-meta > div { display: grid; gap: 4px; padding: 18px; border: 1px solid #344258; border-radius: 10px; color: var(--ds-on-dark-muted); }
.auth-meta strong { color: #fff; }
.auth-main { display: grid; min-width: 0; place-items: center; padding: clamp(32px, 4vw, 64px); background: var(--ds-bg); }
.auth-card { width: min(100%, 500px); padding: 34px; border: 1px solid var(--ds-border); border-radius: 14px; background: var(--ds-surface); box-shadow: var(--ds-shadow-md); }
.auth-card-brand { display: none; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-card-brand > span:last-child { display: grid; }
.auth-card h2 { margin-bottom: 8px; font-size: 30px; }
.auth-card > p { margin-bottom: 24px; }
.auth-card .form-footer { margin-top: 22px; }
.auth-switch { display: flex; margin-top: 24px; align-items: center; justify-content: center; gap: 4px; padding-top: 18px; border-top: 1px solid var(--ds-border); color: var(--ds-text-secondary); text-align: center; }
.auth-switch a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ds-primary); font-weight: 600; }
.geetest-field small { display: block; padding: 10px; border-radius: 8px; background: var(--ds-surface-2); }
.code-value { font-family: var(--ds-font-mono); font-variant-numeric: tabular-nums; }

.install-page { grid-template-columns: 280px minmax(0, 1fr); }
.install-page .auth-brand { align-content: start; padding: 28px 22px; }
.install-page .auth-main { place-items: start center; overflow: auto; }
.install-card { width: min(100%, 900px); }
.install-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.install-step { padding: 5px 9px; border-radius: 99px; background: var(--ds-primary-soft); color: var(--ds-primary); font-size: 12px; }
.install-section { padding: 22px 0; border-top: 1px solid var(--ds-border); }
.install-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.install-section-heading h3 { margin: 0; }
.install-section-heading span { color: var(--ds-text-secondary); font-size: 12px; }
.requirement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.requirement-item { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 1px solid var(--ds-border); border-radius: 8px; }
.requirement-item.ok strong { color: var(--ds-success); }
.requirement-item.failed strong { color: var(--ds-danger); }
.sqlite-note { padding: 10px 12px; border-radius: 8px; background: var(--ds-primary-soft); color: var(--ds-primary); }
.install-locked { align-self: center; }

@media (max-width: 920px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-main { min-height: 100dvh; padding: 28px; }
    .auth-card-brand { display: flex; }
    .install-page .auth-brand { display: none; }
}
@media (max-width: 560px) {
    .auth-main { place-items: start center; padding: 18px 14px; }
    .auth-card { padding: 24px 20px; border-radius: 12px; box-shadow: none; }
    .auth-card h2 { font-size: 26px; }
    .requirement-grid { grid-template-columns: 1fr; }
    .install-heading { flex-direction: column; }
}
