/* Authentication screens share the cockpit's surfaces, type and violet accents. */
.gc-login {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gc-bg);
  color: var(--gc-ink);
  font-family: 'Mona Sans', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gc-login .gc-login-header {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  padding: 22px 0;
  background: transparent;
  box-shadow: none;
  z-index: 20;
}
.gc-login .gc-login-header-inner {
  width: calc(100% - 80px);
  max-width: 1320px;
  padding: 0;
  flex-wrap: nowrap;
}
.gc-login .gc-login-brand {
  min-width: 0;
  margin: 0 32px 0 0;
  color: var(--gc-ink);
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -.04em;
  white-space: normal;
}
.gc-login .gc-login-brand img {
  width: auto;
  max-width: 160px;
  height: 40px;
  object-fit: contain;
}
.gc-login .navbar-nav .nav-link { color: var(--gc-muted); font-size: 13px; }
.gc-login .navbar-nav .nav-link:hover { color: var(--gc-accent); }
.gc-login-header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; margin-left: auto; }
.gc-login .gc-login-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gc-border);
  border-radius: 11px;
  background: var(--gc-surface);
  color: var(--gc-muted);
  font-size: 20px;
  transition: color .18s, border-color .18s, background-color .18s;
}
.gc-login .gc-login-theme-toggle:hover,
.gc-login .gc-login-theme-toggle[aria-pressed='true'] { color: var(--gc-accent); border-color: var(--gc-accent); background: var(--gc-accent-soft); }
.gc-login-stage {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: calc(100% - 80px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0 48px;
}
.gc-login-forms, .gc-login-panel-inner { min-width: 0; }
/* A lightweight, theme-aware platform illustration, drawn and animated in CSS. */
.gc-login-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 12px 0;
}
.gc-login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(98, 86, 218, .14), rgba(98, 86, 218, .03) 52%, transparent 72%);
}
.gc-platform-scene {
  --gc-art-mint: #238b72;
  --gc-art-mint-soft: #e7f6ef;
  --gc-art-shadow: 0 24px 64px -24px rgba(53, 43, 109, .24);
  position: relative;
  width: 100%;
  max-width: min(620px, 76vh);
  aspect-ratio: 600 / 540;
  font-size: clamp(11px, 1.05vw, 14px);
}
.gc-platform-scene::before {
  content: '';
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background-image: radial-gradient(var(--gc-hover) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse, #000 15%, transparent 70%);
  opacity: .5;
}
.gc-platform-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gc-platform-track { fill: none; stroke: var(--gc-border); stroke-width: 2; }
.gc-platform-signal { fill: none; stroke: var(--gc-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 7 20; opacity: .5; animation: gc-platform-stream 12s linear infinite; }
.gc-platform-flow {
  position: absolute; top: 7%; left: 21%; width: 57%; height: 13%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--gc-border); border-radius: 18px;
  background: var(--gc-surface); box-shadow: var(--gc-art-shadow);
  transform: rotate(-3deg); animation: gc-platform-float 10s ease-in-out infinite;
}
.gc-platform-flow > i { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; color: var(--gc-accent); background: var(--gc-accent-soft); font-size: 20px; }
.gc-platform-flow > i:last-child { color: var(--gc-art-mint); background: var(--gc-art-mint-soft); }
.gc-platform-flow > span { flex: 1; height: 1px; background: var(--gc-border); position: relative; }
.gc-platform-flow > span::after { content: ''; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gc-accent); animation: gc-platform-packet 4s ease-in-out infinite; }
.gc-platform-flow > span:nth-of-type(2)::after { animation-delay: 1s; }
.gc-platform-window {
  position: absolute; top: 25%; left: 23%; width: 72%; height: 57%;
  border: 1px solid var(--gc-border); border-radius: 20px;
  background: var(--gc-surface); box-shadow: var(--gc-art-shadow);
  transform: rotate(3deg);
}
.gc-platform-window-top { display: flex; align-items: center; gap: 5px; height: 17%; min-height: 34px; padding: 0 16px; border-bottom: 1px solid var(--gc-border); }
.gc-platform-window-top > span { width: 5px; height: 5px; border-radius: 50%; background: var(--gc-hover); opacity: .65; }
.gc-platform-window-title { margin-left: auto; font-size: 10px; letter-spacing: .04em; color: var(--gc-muted); font-weight: 550; }
.gc-platform-window-body { height: 83%; padding: 6% 7% 5% 29%; display: flex; flex-direction: column; gap: 15%; }
.gc-platform-chart { display: flex; align-items: end; justify-content: space-between; gap: 6%; height: 59%; padding: 0 6% 0; border-bottom: 1px solid var(--gc-border); background: repeating-linear-gradient(to top, transparent 0, transparent calc(33.333% - 1px), var(--gc-soft) calc(33.333% - 1px), var(--gc-soft) 33.333%); }
.gc-platform-chart > span { width: 10%; border-radius: 4px 4px 0 0; background: linear-gradient(to top, #6256da, #b2a8ff); transform-origin: bottom; animation: gc-platform-chart 8s ease-in-out infinite; }
.gc-platform-chart > span:nth-child(1) { height: 32%; }
.gc-platform-chart > span:nth-child(2) { height: 48%; animation-delay: -.5s; }
.gc-platform-chart > span:nth-child(3) { height: 41%; animation-delay: -1s; }
.gc-platform-chart > span:nth-child(4) { height: 67%; animation-delay: -1.5s; }
.gc-platform-chart > span:nth-child(5) { height: 57%; animation-delay: -2s; }
.gc-platform-chart > span:nth-child(6) { height: 82%; animation-delay: -2.5s; }
.gc-platform-chart > span:nth-child(7) { height: 96%; animation-delay: -3s; background: linear-gradient(to top, var(--gc-art-mint), #93dbc3); }
.gc-platform-summary { display: flex; align-items: center; gap: 14px; min-height: 0; flex: 1; }
.gc-platform-ring { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(var(--gc-accent) 0 66%, var(--gc-art-mint) 66% 82%, var(--gc-soft) 82% 100%); position: relative; }
.gc-platform-ring::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--gc-surface); }
.gc-platform-lineset { flex: 1; min-width: 0; }
.gc-platform-lineset > span { display: block; height: 5px; margin: 7px 0; border-radius: 3px; background: var(--gc-border); }
.gc-platform-lineset > span:last-child { width: 58%; opacity: .6; }
.gc-platform-form {
  position: absolute; top: 39%; left: 3%; width: 38%; padding: 5%;
  border: 1px solid var(--gc-border); border-radius: 18px;
  background: var(--gc-surface); box-shadow: var(--gc-art-shadow);
  transform: rotate(-5deg); animation: gc-platform-paper 10s ease-in-out -3s infinite;
}
.gc-platform-form-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--gc-ink); font-weight: 650; }
.gc-platform-form-title > i { color: var(--gc-accent); font-size: 20px; }
.gc-platform-form-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.gc-platform-form .gc-platform-lineset > span { height: 4px; margin: 5px 0; }
.gc-platform-check { display: grid; place-items: center; flex: 0 0 21px; height: 21px; border: 1px solid var(--gc-border); border-radius: 6px; background: var(--gc-accent-soft); color: var(--gc-accent); font-size: 17px; }
.gc-platform-check > i { animation: gc-platform-check 12s ease-in-out infinite; }
.gc-platform-form-row:nth-child(3) .gc-platform-check > i { animation-delay: 1.2s; }
.gc-platform-form-row:nth-child(4) .gc-platform-check > i { animation-delay: 2.4s; }
.gc-platform-form-progress { height: 4px; margin-top: 14px; border-radius: 4px; background: var(--gc-soft); overflow: hidden; }
.gc-platform-form-progress::after { content: ''; display: block; width: 78%; height: 100%; border-radius: inherit; background: var(--gc-accent); transform-origin: left; animation: gc-platform-progress 12s ease-in-out infinite; }
.gc-platform-ready { position: absolute; top: 87%; left: 51%; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--gc-border); border-radius: 14px; background: var(--gc-surface); box-shadow: var(--gc-art-shadow); font-weight: 600; font-size: 12px; color: var(--gc-muted); }
.gc-platform-ready > i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--gc-art-mint-soft); color: var(--gc-art-mint); font-size: 18px; }
.gc-platform-ready > span { white-space: nowrap; }
@keyframes gc-platform-stream { to { stroke-dashoffset: -108; } }
@keyframes gc-platform-packet { 0%, 10% { left: 0; opacity: 0; } 25%, 70% { opacity: 1; } 90%, 100% { left: calc(100% - 5px); opacity: 0; } }
@keyframes gc-platform-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes gc-platform-paper { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes gc-platform-chart { 0%, 100% { transform: scaleY(.82); } 50%, 70% { transform: scaleY(1); } }
@keyframes gc-platform-progress { 0%, 8% { transform: scaleX(.15); } 45%, 100% { transform: scaleX(1); } }
@keyframes gc-platform-check { 0%, 8% { opacity: .15; transform: scale(.7); } 18%, 100% { opacity: 1; transform: scale(1); } }
:is(html.dark-mode, html.dark, html[data-bs-theme='dark']) .gc-platform-scene { --gc-art-mint: #83d8bd; --gc-art-mint-soft: #1e3837; --gc-art-shadow: 0 24px 64px -24px rgba(0, 0, 0, .65); }
:is(html.dark-mode, html.dark, html[data-bs-theme='dark']) .gc-login-visual::before {
  background: radial-gradient(ellipse at center, rgba(178, 168, 255, .14), rgba(178, 168, 255, .03) 52%, transparent 72%);
}
.gc-login-card {
  width: 100%;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid var(--gc-border);
  border-radius: 24px;
  background: var(--gc-surface);
  box-shadow: 0 8px 34px rgba(32, 32, 67, .035);
}
.gc-login .gc-login-title {
  margin: 0 0 12px;
  color: var(--gc-ink);
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.2;
  font-weight: 730;
  letter-spacing: -.055em;
}
.gc-login .gc-login-title label { font: inherit; }
.gc-login .gc-login-intro {
  margin: 0 0 28px;
  color: var(--gc-muted);
  font-size: 14px;
  line-height: 1.7;
}
.gc-login .form-label { margin-bottom: 8px; font-size: 12px !important; font-weight: 650; color: var(--gc-ink); }
.gc-login .form-control {
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--gc-border);
  border-radius: 11px;
  background-color: var(--gc-bg);
  color: var(--gc-ink);
  font-size: 15px;
  box-shadow: none;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.gc-login .form-control:focus { border-color: var(--gc-accent); background-color: var(--gc-surface); box-shadow: 0 0 0 3px var(--gc-accent-soft); }
.gc-login .form-check-input { border-color: var(--gc-border); }
.gc-login .form-check-input:checked { background-color: var(--gc-accent); border-color: var(--gc-accent); }
.gc-login .form-check-label { color: var(--gc-muted); font-size: 12px !important; }
.gc-login .btn {
  min-height: 44px;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none !important;
  transition: color .18s, background-color .18s, border-color .18s;
}
.gc-login .btn-primary { background: var(--gc-accent); border-color: var(--gc-accent); color: #fff; }
.gc-login .btn-primary:hover { background: #5146c2; border-color: #5146c2; }
.gc-login .btn-secondary, .gc-login .btn-default { background: var(--gc-soft); border: 1px solid var(--gc-border); color: var(--gc-ink); }
.gc-login .btn-secondary:hover, .gc-login .btn-default:hover { border-color: var(--gc-accent); color: var(--gc-accent); background: var(--gc-accent-soft); }
.gc-login .btn-link { padding: 10px; color: var(--gc-muted); font-size: 12px; }
.gc-login .btn-link:hover { color: var(--gc-accent); background: var(--gc-accent-soft); }
.gc-login :is(a, button, input):focus-visible { outline: 3px solid var(--gc-accent); outline-offset: 3px; }
.gc-login .gc-login-card .mb-4 { margin-bottom: 20px !important; }
.gc-login .gc-login-card h6 { color: var(--gc-muted); font-size: 11px; font-weight: 600; }
.gc-login .gc-login-card hr { border-color: var(--gc-border); opacity: 1; }
.gc-login .gc-login-microsoft { display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.gc-login .gc-login-microsoft a { display: inline-flex; min-height: 44px; align-items: center; border-radius: 8px; }
.gc-login .img-ms-signin { width: auto; max-width: 100%; height: 40px; }
.gc-login .captcha-img { display: flex; justify-content: center; margin: 12px 0; }
.gc-login .captcha-img img { max-width: 100%; border-radius: 8px; }
.gc-login .text-danger, .gc-login .message-label { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
.gc-login .gc-login-footer { padding: 20px 0 0; }
.gc-login .gc-login-credit { margin: 0; color: var(--gc-muted); text-align: center; font-size: 10px; line-height: 1.8; }
.gc-login .gc-login-credit a { color: var(--gc-muted); }
.gc-login .input-group .form-control { min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gc-login .input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gc-login-legacy-panel .profile-img { display: none; }
.gc-login-legacy-panel .form-control, .gc-login-legacy-panel .btn { margin: 14px 0; }
.gc-login-legacy-panel .btn { width: 100%; }
.gc-login-legacy-panel .password-label, .gc-login-legacy-panel .sendmessage-label { color: var(--gc-muted); font-size: 14px; line-height: 1.7; }

:is(html.dark-mode, html.dark, html[data-bs-theme='dark']) .gc-login .btn-primary { color: #191d30; }
:is(html.dark-mode, html.dark, html[data-bs-theme='dark']) .gc-login .btn-primary:hover { background: #c3bbff; border-color: #c3bbff; }
@media (max-width: 991.98px) {
  .gc-login .gc-login-header-inner { width: calc(100% - 48px); }
  .gc-login .gc-login-header { padding: 18px 0; }
  .gc-login-stage { grid-template-columns: minmax(0, 1fr); gap: 0; width: calc(100% - 48px); max-width: 500px; padding-top: 32px; }
  .gc-login-visual { display: none; }
  .gc-login .offcanvas { background: var(--gc-surface); color: var(--gc-ink); }
  .gc-login .offcanvas .border-top, .gc-login .offcanvas .border-bottom { border-color: var(--gc-border) !important; }
  .gc-login .navbar-toggler { width: 44px; height: 44px; padding: 10px; border: 1px solid var(--gc-border); border-radius: 11px; }
}
@media (max-width: 575.98px) {
  .gc-login .gc-login-header-inner { width: calc(100% - 32px); }
  .gc-login .gc-login-brand { font-size: 18px; margin-right: 12px; }
  .gc-login .gc-login-brand img { max-width: 110px; height: 34px; margin-right: 10px !important; }
  .gc-login-stage { width: calc(100% - 32px); padding: 16px 0 30px; }
  .gc-login-card { padding: 26px 22px; border-radius: 20px; }
  .gc-login .form-control { font-size: 16px; }
  .gc-login .gc-login-intro { margin-bottom: 24px; font-size: 13px; }
  .gc-login .gc-login-card .mb-4 { margin-bottom: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-login *, .gc-login *::before, .gc-login *::after { transition-duration: 0s !important; animation: none !important; }
}
