:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17212b; background: #f3f7f8; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; padding: 112px 24px 64px; display: grid; place-items: center; font-size: 17px; line-height: 1.5; }
.page-header { position: absolute; top: 32px; right: 36px; }
.private-badge { display: inline-flex; align-items: center; gap: 10px; color: #205f37; font-size: 15px; font-weight: 600; }
.private-badge img, .access-notice > img { opacity: .8; }
.login-panel { width: 100%; max-width: 620px; padding: 44px 48px 36px; border: 1px solid #e1e8eb; border-radius: 8px; background: #fff; box-shadow: 0 16px 56px #15352c0c; }
.brand { text-align: center; margin-bottom: 32px; }
.logo { display: block; width: 300px; max-width: 100%; height: auto; margin: -8px auto 0; }
h1 { margin: 0; color: #65737f; font-size: 15px; font-weight: 600; text-transform: uppercase; }
.access-notice { display: flex; align-items: flex-start; gap: 18px; padding: 4px 0 4px 20px; border-left: 3px solid #b8d7c4; margin-bottom: 32px; }
.access-notice > img { flex: 0 0 26px; margin-top: 4px; }
h2 { margin: 0 0 3px; font-size: 18px; font-weight: 650; }
.access-notice p { margin: 0; color: #5c6b78; font-size: 16px; line-height: 1.65; }
form { display: grid; gap: 10px; }
label { font-size: 17px; font-weight: 600; }
.key-field { display: flex; align-items: center; position: relative; min-width: 0; height: 60px; border: 1px solid #8a9c94; border-radius: 6px; background: #fff; }
.key-field:focus-within { border-color: #24763e; box-shadow: 0 0 0 3px #23783b18; }
.key-icon { flex-shrink: 0; margin-left: 18px; opacity: .5; }
input { font: inherit; min-width: 0; width: 100%; height: 100%; padding: 14px 12px; background: transparent; border: 0; color: #17212b; }
input:focus { outline: 0; }
input::placeholder { color: #6b7884; font-size: 16px; opacity: 1; }
button { font: inherit; cursor: pointer; }
.visibility-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-right: 6px; border: 0; border-radius: 4px; background: transparent; }
.visibility-toggle:hover { background: #eef3f5; }
.visibility-toggle img { opacity: .6; }
[hidden] { display: none !important; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 60px; margin-top: 14px; padding: 14px 20px; border: 0; border-radius: 6px; background: #217739; color: #fff; font-size: 18px; font-weight: 650; }
.submit-button img { filter: invert(1); }
.submit-button:hover { background: #195f2d; }
.submit-button:disabled { cursor: wait; opacity: .7; }
button:focus-visible { outline: 3px solid #2568a6; outline-offset: 4px; }
.login-footer { display: flex; align-items: center; gap: 18px; margin-top: 42px; color: #697582; font-size: 14px; text-align: center; }
.login-footer::before, .login-footer::after { content: ""; flex: 1; height: 1px; background: #dce3e7; }
.login-footer span { flex-shrink: 0; }
.error-message { margin: 0 0 22px; padding: 12px 14px; border-left: 3px solid #af3343; color: #96283a; background: #fff3f4; font-size: 16px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  body { padding: 88px 16px 32px; }
  .page-header { top: 24px; right: 24px; }
  .login-panel { padding: 28px 22px; }
  .logo { width: 250px; }
  .brand { margin-bottom: 28px; }
  .access-notice { padding-left: 12px; gap: 12px; margin-bottom: 28px; }
  .access-notice p { font-size: 15px; }
  .key-icon { margin-left: 12px; width: 18px; }
  input { padding-left: 10px; }
  input::placeholder { font-size: 14px; }
  .login-footer { gap: 10px; margin-top: 32px; font-size: 12px; }
}
@media (max-height: 700px) { body { align-items: start; padding-top: 80px; } }
