/*
 * The login module is an ES module and therefore deferred: it cannot render the
 * overlay until the document has finished parsing. Without this rule the page
 * content would be briefly visible to a signed-out user on every load.
 *
 * `:empty` matches only until the module fills the mount point, at which point
 * the .login-overlay below takes over. No JavaScript is required to remove it.
 */
#loginSequenceRoot:empty {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(380px, calc(100vw - 2rem));
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.login-logo { height: 56px; margin-bottom: 0.8rem; border-radius: 12px; }
.login-title { margin-bottom: 0.3rem; background: var(--etas-gradient); color: var(--etas-blue); font-size: 1.2rem; font-weight: 700; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.login-description { margin-bottom: 1.5rem; color: var(--text-secondary); font-size: 0.75rem; }
.login-input { width: 100%; margin-bottom: 0.6rem; padding: 0.7rem 1rem; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 0.85rem; outline: none; }
.login-input-last { margin-bottom: 1rem; }
.login-submit { width: 100%; padding: 0.75rem; font-size: 0.88rem; }
.login-feedback { display: none; margin-top: 0.8rem; font-size: 0.75rem; }
.login-feedback-error { color: var(--danger); }
.login-feedback-success { color: #16a34a; }
.login-link-row { margin-top: 0.8rem; color: var(--text-secondary); font-size: 0.75rem; }
.login-link-row-spaced { margin-top: 1rem; }
.login-link { color: var(--etas-blue); font-weight: 600; text-decoration: none; }
.login-company { margin-top: 1.2rem; color: var(--text-muted); font-size: 0.65rem; }
