.auth-modal { width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid #d5dce1; border-radius: 8px; background: #fff; color: #20262d; font: 14px/1.6 Arial, sans-serif; }
.auth-modal::backdrop { background: #10182099; }
.auth-modal header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-modal header a { display: flex; align-items: center; gap: 10px; color: inherit; font-size: 20px; font-weight: 700; text-decoration: none; }
.auth-modal header button { display: grid; place-items: center; min-width: 44px; min-height: 44px; background: transparent; color: inherit; border: 0; cursor: pointer; }
.auth-modal h1 { font: 600 22px/1.4 Arial, sans-serif; margin: 24px 0 18px; color: inherit; }
.auth-modal form, .auth-modal form > label:not(.auth-modal-remember) { display: grid; gap: 8px; }
.auth-modal form { gap: 18px; }
.auth-modal input:not([type=checkbox]) { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #8996a2; border-radius: 4px; background: #fff; color: #20262d; font-size: 16px; }
.auth-modal-remember { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.auth-modal-remember input { width: 18px; height: 18px; accent-color: #17654e; }
.auth-modal-submit { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; background: #17654e; color: #fff; border: 0; border-radius: 4px; font-size: 14px; cursor: pointer; }
.auth-modal-submit:disabled { opacity: .65; cursor: wait; }
.auth-modal-help { font-size: 13px; color: #56616d; margin: 20px 0; }
.auth-modal-download { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #17654e; min-height: 44px; }
.auth-modal [data-login-errors] { color: #9f2424; background: #fff2f2; padding: 10px; border-radius: 4px; }
.auth-modal [hidden] { display: none; }
.auth-modal :focus-visible { outline: 2px solid #17654e; outline-offset: 3px; }
html[data-theme="dark"] .auth-modal { color: #eef1f4; background: #202428; border-color: #56616d; }
html[data-theme="dark"] .auth-modal-help { color: #bcc7d0; }
html[data-theme="dark"] .auth-modal-download { color: #8ed8b6; }
