:root { color-scheme: dark; --page: #1c1c1e; --surface: #202022; --text: #f5f5f7; --muted: #a3a3a9; --field: #272729; --border: #707075; }
:root[data-bs-theme="light"] { color-scheme: light; --page: #fafafa; --surface: #fff; --text: #202024; --muted: #66666c; --field: #fff; --border: #929298; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
.panel-login-brand { min-height: 48px; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; overflow-wrap: anywhere; }
#toggle-theme { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; font-size: 24px; }
.panel-login-shell { min-height: calc(100dvh - 72px); display: grid; align-items: start; justify-items: center; padding: 28px 20px 56px; }
.panel-login-card { width: 600px; max-width: 100%; padding: 32px 76px 46px; border-radius: 32px; background: var(--surface); box-shadow: 0 12px 32px #0004; }
[data-bs-theme="light"] .panel-login-card { box-shadow: 0 6px 26px #0001; }
.panel-login-logo { width: 166px; height: 166px; position: relative; display: grid; place-items: center; margin: 0 auto 20px; }
.panel-login-logo i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--dot-color); transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius))); }
.panel-login-logo span { font-size: 42px; font-weight: 650; }
.panel-login-logo img { width: 60px; height: 60px; object-fit: contain; }
h1 { margin: 0; text-align: center; font-size: 28px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
.panel-login-lead { margin: 8px 0 28px; text-align: center; color: var(--muted); }
form { display: grid; gap: 18px; }
form label > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="password"] { display: block; width: 100%; height: 52px; border: 1px solid var(--border); border-radius: 10px; background: var(--field); color: var(--text); padding: 12px 15px; outline: none; font-size: 16px; }
input:focus-visible, button:focus-visible { outline: 3px solid #4d9fff; outline-offset: 2px; }
input::placeholder { color: var(--muted); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--field) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 94px; }
.toggle-password { position: absolute; top: 0; right: 8px; height: 52px; padding: 0 8px; border: 0; background: transparent; color: #499eff; font-size: 12px; cursor: pointer; }
.panel-login-remember { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.panel-login-remember input { width: 17px; height: 17px; accent-color: #087bf0; }
.btn-primary { width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: 7px; background: #087bf0; color: #fff; cursor: pointer; }
.btn-primary:hover { background: #1987f5; }
.alert { margin: 12px 0; padding: 10px 14px; border: 1px solid #b66064; border-radius: 8px; color: #e9878b; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .panel-login-brand { padding: 8px 16px; }
  .panel-login-shell { padding: 12px 14px 28px; }
  .panel-login-card { padding: 26px 24px 32px; border-radius: 24px; }
  h1 { font-size: 24px; }
  .panel-login-logo { margin-bottom: 12px; }
}
