/* A dedicated entrance to the professional workspace. */
#auth-gate { width: min(460px, calc(100% - 32px)); margin: clamp(24px, 6vh, 72px) auto; color: #f5f3ef; }
#auth-gate .auth-brand { display: flex; justify-content: center; margin: 0 0 24px; padding: 12px; border-radius: 20px; background: #101318; }
#auth-gate .auth-brand img { width: 230px; height: 110px; object-fit: contain; }
#auth-form { padding: clamp(24px, 5vw, 40px); border: 1px solid #34383e; border-radius: 24px; background: linear-gradient(145deg, #20252d, #15191f); box-shadow: 0 24px 70px #0003; }
#auth-form .eyebrow { color: #d9ac82; font-size: .7rem; letter-spacing: .18em; margin-bottom: 12px; }
#auth-form h1 { font-size: clamp(1.4rem, 5vw, 1.75rem); line-height: 1.25; margin-bottom: 12px; }
#auth-help { color: #b8bec8; font-size: .88rem; margin-bottom: 28px; }
#auth-form .field label { color: #e8e9ec; font-size: .82rem; margin-bottom: 8px; }
#auth-form .field input { width: 100%; min-height: 50px; border: 1px solid #424852; border-radius: 12px; background: #10141a; color: #fff; padding: 12px 14px; font: inherit; }
#auth-form input:focus-visible, #auth-form a:focus-visible, #auth-submit:focus-visible { outline: 3px solid #e4b68c; outline-offset: 4px; }
#auth-form .auth-remember { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 8px; cursor: pointer; color: #f5f3ef; font-size: .86rem; }
#auth-remember { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 3px; accent-color: #d9a675; cursor: pointer; }
#auth-form .auth-remember small { display: block; color: #b8bec8; font-size: .75rem; font-weight: 400; line-height: 1.6; margin-top: 3px; }
#auth-status:empty { display: none; }
#auth-status:not(:empty) { margin: 18px 0; padding: 12px; border: 1px solid #9f5151; border-radius: 10px; background: #52232355; color: #ffd0d0; }
#auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 24px; padding: 13px 20px; border: 1px solid #e3b78e; border-radius: 12px; background: #d9a675; color: #20170f; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px #0002; transition: background .18s, box-shadow .18s; }
#auth-submit:hover { background: #ecc29b; box-shadow: 0 8px 24px #0004; }
#auth-submit:disabled { opacity: .6; cursor: wait; }
#auth-gate .auth-back { display: block; text-align: center; margin-top: 24px; color: #c3c8d0; font-size: .8rem; text-decoration: none; }
#auth-gate .auth-back:hover { color: #f0c8a2; text-decoration: underline; }

#auth-gate { color-scheme: dark; }
html[data-admin-theme="light"] #auth-gate { color: #171a1f; color-scheme: light; }
html[data-admin-theme="light"] #auth-gate .auth-brand { background: transparent; }
html[data-admin-theme="light"] #auth-form { color: #171a1f; background: linear-gradient(145deg, #fffdf8, #f8f5ef); border-color: #ded7cd; box-shadow: 0 24px 70px #30241812; }
html[data-admin-theme="light"] #auth-form .eyebrow { color: #8d5c32; }
html[data-admin-theme="light"] #auth-help,
html[data-admin-theme="light"] #auth-form .auth-remember small { color: #646c76; }
html[data-admin-theme="light"] #auth-form .field label,
html[data-admin-theme="light"] #auth-form .auth-remember { color: #30363e; }
html[data-admin-theme="light"] #auth-form .field input { color: #171a1f; background: #fff; border-color: #ccc5bb; }
html[data-admin-theme="light"] #auth-status:not(:empty) { color: #9f2424; background: #fff0ef; border-color: #e9b7b3; }
html[data-admin-theme="light"] #auth-submit { background: #b07845; color: #fff; border-color: #9b6638; box-shadow: 0 6px 18px #8d5c3218; }
html[data-admin-theme="light"] #auth-submit:hover { background: #8d5c32; box-shadow: 0 8px 24px #8d5c3224; }
html[data-admin-theme="light"] #auth-gate .auth-back { color: #646c76; }
html[data-admin-theme="light"] #auth-gate .auth-back:hover { color: #8d5c32; }
