/* Gbsinfo Matrix login */
html.task-login,
body.task-login {
  background: #02060f !important;
  background-color: #02060f !important;
  overflow: hidden !important;
  min-height: 100%;
}

body.task-login #layout,
body.task-login #layout-menu,
body.task-login #layout-content,
body.task-login #layout-sidebar,
body.task-login #layout-list,
body.task-login .content,
body.task-login .frame-content {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

#gbs-matrix {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
  background: #02060f;
  opacity: 0.78;
}

#gbs-matrix-fade {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(2, 12, 32, 0.22) 0%, rgba(2, 6, 15, 0.58) 55%, rgba(2, 6, 15, 0.9) 100%);
}

body.task-login #layout,
body.task-login #layout-content {
  position: relative !important;
  z-index: 2 !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  /* Optical center: higher than geometric middle */
  justify-content: flex-start !important;
  padding: clamp(4.5rem, 14vh, 9rem) 1rem 3rem !important;
  box-sizing: border-box !important;
}

body.task-login #layout-content > #gbs-wordmark,
body.task-login #layout-content > #logo {
  margin: 0 0 1.25rem !important;
}

body.task-login #login-form {
  margin: 0 auto !important;
  width: min(100%, 380px);
}

body.task-login #logo {
  display: none !important;
}

/* Sharp wordmark — no blurry glow */
#gbs-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 1.35rem;
  perspective: 800px;
  user-select: none;
}

.gbs-wordmark-title {
  display: flex;
  gap: 0.01em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gbs-wordmark-title--subline {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.gbs-space {
  display: inline-block;
  width: 0.35em;
}

.gbs-letter {
  display: inline-block;
  min-width: 0.7em;
  text-align: center;
  transform-style: preserve-3d;
  /* crisp — no heavy glow */
  text-shadow: none;
  filter: none;
}

.gbs-letter--sky { color: #38bdf8; }
.gbs-letter--navy { color: #e2e8f0; }

.gbs-letter.is-scrambling {
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}

.gbs-letter.is-locked {
  animation: gbs-settle 0.4s ease-out both;
}

.gbs-letter.is-flip {
  animation: gbs-flip 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.gbs-wordmark-sub {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

body.task-login #login-form {
  background: rgba(8, 18, 36, 0.78) !important;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  padding: 1.6rem 1.75rem 1.35rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.45);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

body.task-login #login-form .form-control {
  background: rgba(2, 10, 24, 0.8) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  color: #e2e8f0 !important;
}

body.task-login #login-form .form-control:focus {
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

body.task-login #login-form label,
body.task-login #login-form .title,
body.task-login #login-footer {
  color: #94a3b8 !important;
}

body.task-login #rcmloginsubmit,
body.task-login button.mainaction {
  background: linear-gradient(135deg, #0ea5e9, #0369a1) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

/* Login storm transition */
body.gbs-storm #login-form,
body.gbs-storm #gbs-wordmark {
  opacity: 0.15;
  transform: scale(0.96);
  filter: blur(2px);
  pointer-events: none;
}

body.gbs-storm #gbs-matrix {
  opacity: 1;
  z-index: 5;
}

body.gbs-storm #gbs-matrix-fade {
  z-index: 6;
  background: radial-gradient(ellipse at center, rgba(2, 20, 40, 0.2), rgba(2, 6, 15, 0.55));
}

#gbs-storm-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: gbs-storm-in 0.25s ease both;
}

.gbs-storm-msg {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #7dd3fc;
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
}

.gbs-storm-dots::after {
  content: '';
  animation: gbs-dots 1s steps(4, end) infinite;
}

@keyframes gbs-settle {
  from { transform: scale(1.12); opacity: 0.7; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes gbs-flip {
  0%   { transform: rotateY(0deg); }
  35%  { transform: rotateY(90deg) scale(0.85); opacity: 0.4; }
  36%  { transform: rotateY(-90deg) scale(0.85); opacity: 0.4; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

@keyframes gbs-storm-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gbs-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* Brand FX intentionally kept even with prefers-reduced-motion (login page). */

