.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); border-radius: var(--r-xl); padding: clamp(24px, 5vw, 36px); display: flex; flex-direction: column; gap: var(--sp-5); }
.auth-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.auth-head .brand-mark { width: 48px; height: 48px; border-radius: 16px; margin-bottom: 10px; }
.auth-head .brand-mark .icon { width: 22px; height: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: var(--sp-4); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: var(--text-muted); display: grid; place-items: center; }
.pw-toggle:hover { background: var(--surface-hover); color: var(--text); }
.form-row.center { display: flex; justify-content: center; font-size: var(--fs-sm); }
.link { color: var(--accent); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); border: 1px solid transparent; }
.alert[hidden] { display: none; }
.alert.err { background: var(--danger-soft); color: var(--danger); border-color: rgb(248 113 113 / .3); }
.alert.ok { background: var(--success-soft); color: var(--success); border-color: rgb(52 211 153 / .3); }
.alert.warn { background: var(--warning-soft); color: var(--warning); border-color: rgb(251 191 36 / .3); }
.btn-block { width: 100%; padding: 13px 18px; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-top { position: fixed; top: 20px; right: 20px; z-index: 5; }
