/* login.css
   Copyright © 2026 LexPro. All rights reserved.

   The sign-in box on the plain-HTML pages (frame/login_dialog.dart, js/login.js),
   as the Flutter LoginDialog draws it: a 420px white card over a dimmed page,
   the product's logo, "Log in", the providers the server offers, email,
   password, the main button and "Forgot password?". */

.login { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login[hidden] { display: none; }
html.login-open { overflow: hidden; }
.login__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .54); }
.login__panel {
  position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 20px 28px 28px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-card), 0 24px 48px -12px rgba(12, 29, 58, .25);
  display: grid; gap: 14px;
}
@media (max-width: 420px) { .login__panel { padding: 16px 18px 22px; } }
.login__lockup { --lockup: 15.6px; }
.login__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login__title { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.login__close { border-color: transparent; }

.login__providers { display: grid; gap: 10px; }
.login__providers[hidden] { display: none; }
.login__provider-list { display: grid; gap: 10px; }
.login__provider { width: 100%; justify-content: center; }
.login__or { display: flex; align-items: center; gap: 12px; color: var(--gray-600); font-size: 14px; }
.login__or::before, .login__or::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }

.login__form { display: grid; gap: 14px; }
.login__password { position: relative; }
.login__password input { padding-right: 112px; }
.login__reveal {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--navy-800); cursor: pointer;
}
.login__reveal:hover { background: var(--navy-25); }
.login__failure { color: var(--red-700); font-size: 15px; text-align: center; }
.login__submit { justify-self: center; margin-top: 8px; }
.login__submit[disabled] { opacity: .7; cursor: progress; }
.login__forgot { justify-self: center; font-weight: 600; color: var(--navy-800); }
