/* Sign-in screens and dialogs for the SGA production runtime. Matches the app's design language. */
#sga-auth, .sga-modal {
  position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px; overflow: auto;
  background: light-dark(#f5f5f7, #000); color: light-dark(#1d1d1f, #f5f5f7);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color-scheme: light dark;
}
.sga-modal { background: rgba(0, 0, 0, .45); }
.sga-auth-card {
  width: 100%; max-width: 420px; background: light-dark(#fff, #1c1c1e); border-radius: 22px; padding: 34px 30px 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .08);
}
.sga-brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.sga-mark { font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: #0071e3; }
.sga-by { font-size: 13px; color: light-dark(#6e6e73, #a1a1a6); }
.sga-auth-card h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 700; }
.sga-auth-card h2 { font-size: 22px; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
.sga-sub { font-size: 15px; line-height: 1.5; color: light-dark(#6e6e73, #a1a1a6); margin: 10px 0 20px; }
.sga-auth-card label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.sga-auth-card input[type=email], .sga-auth-card input[type=password], .sga-auth-card input:not([type]), .sga-auth-card input[inputmode] {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; border-radius: 12px;
  border: 1px solid light-dark(#d2d2d7, #424245); background: light-dark(#fff, #2c2c2e); color: inherit;
}
.sga-auth-card input:focus-visible { outline: 3px solid rgba(0, 113, 227, .35); border-color: #0071e3; }
.sga-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; line-height: 1.45; margin: 18px 0 4px !important; }
.sga-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.sga-auth-card a { color: #0071e3; }
.sga-hint { font-size: 13px; color: light-dark(#6e6e73, #a1a1a6); margin: 6px 0 0; line-height: 1.45; word-break: break-word; }
.sga-msg { min-height: 20px; font-size: 14px; color: #d70015; margin: 12px 0 4px; line-height: 1.4; }
.sga-msg.ok { color: #248a3d; }
.sga-btn {
  display: block; width: 100%; min-height: 46px; margin-top: 8px; border: 0; border-radius: 980px; font: inherit; font-size: 16px; font-weight: 600;
  background: #0071e3; color: #fff; cursor: pointer;
}
.sga-btn:hover { background: #0077ed; }
.sga-btn:disabled { opacity: .55; cursor: default; }
.sga-btn.plain { background: light-dark(#f5f5f7, #2c2c2e); color: light-dark(#1d1d1f, #f5f5f7); }
.sga-btn:focus-visible, .sga-link:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }
.sga-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; color: light-dark(#6e6e73, #a1a1a6); font-size: 13px; }
.sga-or::before, .sga-or::after { content: ""; flex: 1; height: 1px; background: light-dark(#d2d2d7, #424245); }
.sga-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.sga-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: #0071e3; cursor: pointer; }
.sga-row { display: flex; gap: 10px; margin-top: 14px; }
.sga-row .sga-btn { margin-top: 0; }
.sga-qr { display: grid; justify-items: center; gap: 8px; margin: 10px 0; min-height: 60px; }
.sga-qr img { background: #fff; padding: 8px; border-radius: 12px; }
