:root { color-scheme: light; --dsh-login-bg: #fff; --dsh-login-fill: #f9fafb; --dsh-login-label: #0f1115; --dsh-login-secondary: #81858c; --dsh-login-stroke: rgb(15 17 21 / 12%); --dsh-login-focus: #0f1115; --dsh-login-button: #0f1115; --dsh-login-button-label: #f9fafb; --dsh-login-error: #c33838; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --dsh-login-bg: #151517; --dsh-login-fill: #1b1b1c; --dsh-login-label: #f9fafb; --dsh-login-secondary: #81858c; --dsh-login-stroke: rgb(255 255 255 / 12%); --dsh-login-focus: #e1e5ee; --dsh-login-button: #f9fafb; --dsh-login-button-label: #0f1115; --dsh-login-error: #f38b8b; } }
* { box-sizing: border-box; }
body { margin: 0; color: var(--dsh-login-label); background: var(--dsh-login-bg); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
.dsh-login-main { display: flex; flex-direction: column; align-items: center; min-height: 100svh; padding: max(64px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(96px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.dsh-login-card { flex: none; width: min(100%, 325px); margin-block: auto; }
.dsh-login-heading { margin-bottom: 30px; }
.dsh-login-heading h1 { margin: 28px 0 0; text-align: center; font-size: 20px; line-height: 28px; font-weight: 500; }
.dsh-login-brand { --dsw-alias-label-primary-inverted: var(--dsh-login-bg); display: flex; align-items: center; justify-content: center; }
.dsh-login-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.dsh-login-card form { display: flex; flex-direction: column; gap: 22px; }
.dsh-login-field { position: relative; }
.dsh-login-field input { display: block; width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--dsh-login-stroke); border-radius: 12px; outline: none; background: var(--dsh-login-fill); color: var(--dsh-login-label); font: inherit; font-size: 14px; transition: border-color .15s ease; }
.dsh-login-field input::placeholder { color: var(--dsh-login-secondary); opacity: 1; }
.dsh-login-field input[readonly] { color: var(--dsh-login-secondary); }
.dsh-login-field input:focus-visible { border-color: var(--dsh-login-focus); }
.dsh-login-password-field input { padding-right: 50px; }
button { font: inherit; cursor: pointer; }
button:disabled, input:disabled { opacity: .55; cursor: default; }
button:focus-visible { outline: 2px solid var(--dsh-login-focus); outline-offset: 3px; }
.dsh-login-password-toggle { position: absolute; top: 2px; right: 3px; display: grid; place-items: center; width: 42px; height: 44px; padding: 0; border: 0; border-radius: 10px; color: var(--dsh-login-secondary); background: transparent; }
.dsh-login-password-toggle:hover:not(:disabled) { color: var(--dsh-login-label); }
.dsh-login-password-toggle:focus-visible { outline-offset: -3px; }
.dsh-login-button { width: 100%; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--dsh-login-button); color: var(--dsh-login-button-label); font-size: 14px; line-height: 24px; font-weight: 500; }
.dsh-login-card form > .dsh-login-button { margin-top: 10px; }
.dsh-login-button:hover:not(:disabled) { opacity: .88; }
.dsh-login-secondary-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.dsh-login-secondary-actions button { padding: 0; border: 0; background: transparent; color: var(--dsh-login-secondary); font-size: 12px; line-height: 20px; }
.dsh-login-secondary-actions button:hover:not(:disabled) { color: var(--dsh-login-label); }
.dsh-login-error { margin: 0; color: var(--dsh-login-error); line-height: 1.6; font-size: 13px; }
.dsh-login-note { margin: 0; color: var(--dsh-login-secondary); line-height: 1.6; font-size: 12px; }
.dsh-login-state { display: flex; flex-direction: column; gap: 22px; }
.dsh-login-state p { margin: 0; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .dsh-login-field input { transition: none; } }
.dsh-login-link { padding: 0; border: 0; color: var(--dsh-login-secondary); background: transparent; font-size: 13px; line-height: 22px; }
.dsh-login-link:hover { color: var(--dsh-login-label); }
.dsh-login-claim { display: flex; align-items: flex-start; gap: 10px; line-height: 22px; font-size: 13px; }
.dsh-login-claim input { flex: none; width: 16px; height: 16px; margin: 3px 0; accent-color: var(--dsh-login-label); }
.dsh-login-claim small { display: block; color: var(--dsh-login-secondary); font-size: 12px; line-height: 20px; }
.dsh-login-centered { text-align: center; }
