/* Sign-in page of every site — loaded only by frontend/login_page.py.
 * Vars: --login-* from assets/config/app.toml [login.style] + [login.sites.<site>] + [brand],
 * emitted by login_page.py :: _style_block(). Edit the TOML, not values here.
 * Mobile-first: these rules are the phone layout (panel only). The desktop rule (photo + panel)
 * is emitted by the same function into @layer overrides, because media queries can't read vars.
 */
@layer components {
  .login-body .nicegui-content { padding: 0; }
  .login {
    display: flex; width: 100%; min-height: 100vh;
    background: var(--login-background); color: var(--login-text);
  }
  .login-photo {
    display: none; flex: 1;
    margin: var(--login-margin) 0 var(--login-margin) var(--login-margin);
    border: 1px solid var(--login-photo-border);
    background: var(--login-photo) var(--login-photo-position) / cover no-repeat;
  }
  .login-panel {
    flex: 1; display: flex; flex-direction: column;
    padding: 60px var(--login-padding) 24px;
  }
  .login-logo { height: 36px; }
  .login-logo svg { display: block; height: 100%; width: auto; color: var(--login-logo); }
  .login-eyebrow {
    margin-top: 40px; font-size: 13px; font-weight: 500; letter-spacing: .08em;
    text-transform: uppercase; color: var(--login-muted);
  }
  .login-logo + .login-title { margin-top: 40px; }
  .login-title { margin-top: 8px; font-size: 40px; font-weight: var(--login-title-weight); line-height: 1.05; }
  .login-subtitle { margin-top: 8px; font-size: 18px; }
  .login-rule { height: 3px; background: var(--login-accent); margin: 24px 0; }
  .login-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: var(--login-button-width); height: 48px; padding: 0 12px;
    background: transparent; color: var(--login-text);
    border: 1px solid var(--login-button-border); border-radius: 0;
    font: 600 15px var(--login-font); cursor: pointer;
  }
  .login-btn:hover { background: var(--login-button-hover); }
  .login-btn svg { display: block; flex: none; }
  .login-note { font-size: 13px; color: var(--login-muted); }
  .login-credit { display: none; margin-top: auto; padding-top: 24px; font-size: 11px; color: var(--login-credit); }
  .login-credit a { color: inherit; }
}
