/*
 * GI Capital Brokers standalone shell.
 * Complements (but does not override) the migrated .brokers-app design.
 * No global Portal CSS or third-party runtime UI libraries required.
 */
:root {
  color-scheme: light;
  --shell-navy: #193851;
  --shell-muted: #4f6577;
  --shell-border: #dce5eb;
  --shell-bg: #f2f5f7;
  --shell-focus: #1d659e;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--shell-bg);
  color: var(--shell-navy);
  font: 400 14px/1.55 "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
[hidden] { display: none !important; }
.app-header {
  position: relative;
  z-index: 1;
  width: 100%;
  border-bottom: 1px solid var(--shell-border);
  background: #fff;
}
.app-header-inner {
  width: min(100%, 1640px);
  margin: 0 auto;
  padding: 13px clamp(14px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.app-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--shell-navy);
  color: white;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.04em;
}
.app-brand-copy { display: grid; gap: 0; }
.app-brand-copy strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .085em;
  line-height: 1.5;
}
.app-brand-copy small {
  color: #725e40;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .12em;
}
.app-header-actions { display: flex; align-items: center; gap: 18px; }
.app-header-context { color: var(--shell-muted); font-size: 12px; }
.app-logout {
  min-height: 42px;
  border: 1px solid #c9d6df;
  border-radius: 9px;
  padding: 9px 15px;
  color: var(--shell-navy);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.app-logout:hover { background: #f2f6f9; border-color: #9eb6c7; }
.app-main {
  flex: 1;
  width: min(100%, 1680px);
  min-width: 0;
  margin: 0 auto;
  padding: 0 clamp(10px, 2vw, 22px) 24px;
}
.app-status {
  max-width: 560px;
  margin: 54px auto 24px;
  padding: 16px 20px;
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  background: #fff;
  color: var(--shell-muted);
  font-size: 14px;
  text-align: center;
}
.login-card, .access-panel {
  width: min(100%, 500px);
  margin: clamp(40px, 8vh, 100px) auto 40px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--shell-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(16, 43, 65, .055);
}
.login-symbol {
  width: 55px;
  height: 55px;
  margin-bottom: 25px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #e9f0f5;
  color: var(--shell-navy);
  font-size: 19px;
  font-weight: 800;
}
.login-eyebrow {
  color: #765f3c;
  letter-spacing: .14em;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 800;
}
.login-card h1, .access-panel h2 {
  margin: 10px 0 12px;
  color: #1b344c;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 750;
  line-height: 1.23;
  letter-spacing: -.03em;
}
.login-intro, .access-panel > p {
  margin: 0 0 23px;
  color: var(--shell-muted);
  font-size: 14px;
  line-height: 1.65;
}
.auth-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 17px;
  background: var(--shell-navy);
  border: 1px solid var(--shell-navy);
  border-radius: 9px;
  color: white;
  font: 700 14px/1.4 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.auth-button:hover { background: #2a5473; border-color: #2a5473; }
.auth-button:disabled { opacity: .6; cursor: wait; }
.login-help, .access-panel .login-help {
  color: var(--shell-muted);
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.65;
}
.access-panel-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #f9ede4;
  color: #8c4e28;
  font-weight: 800;
  font-size: 20px;
}
.access-panel a, .app-footer a { color: #1d5279; text-decoration: underline; }
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px clamp(16px, 3vw, 44px) 22px;
  border-top: 1px solid var(--shell-border);
  color: var(--shell-muted);
  font-size: 12px;
}
.app-header :is(button, a):focus-visible,
.app-main :is(button, a):focus-visible,
.app-footer a:focus-visible {
  outline: 3px solid var(--shell-focus);
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .app-header-inner { padding: 11px 14px; }
  .app-header-context { display: none; }
  .app-main { padding: 0 10px 18px; }
  .app-footer { padding: 16px 14px 20px; flex-wrap: wrap; }
  .login-card, .access-panel { margin-top: 38px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
