/* GMRC Login — standalone styles (scoped under .gmrc-login) */

.gmrc-login {
  --login-bg: #071326;
  --login-panel: #0f1c34;
  --login-panel-border: rgba(46, 107, 255, 0.22);
  --login-accent: #2e6bff;
  --login-accent-hover: #4a7dff;
  --login-text: #ffffff;
  --login-muted: #a8b4c8;
  --login-input-bg: rgba(7, 19, 38, 0.72);
  --login-radius: 20px;
  --login-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(46, 107, 255, 0.08);
  --login-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  margin: 0;
  min-height: 100vh;
  font-family: var(--login-font);
  color: var(--login-text);
  background: var(--login-bg);
  -webkit-font-smoothing: antialiased;
}

.gmrc-login *,
.gmrc-login *::before,
.gmrc-login *::after {
  box-sizing: border-box;
}

.gmrc-login__shell {
  display: flex;
  min-height: 100vh;
}

/* —— Brand panel (left) —— */

.gmrc-login__brand {
  position: relative;
  flex: 0 0 45%;
  max-width: 45%;
  overflow: hidden;
  display: flex;
}

.gmrc-login__brand-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 19, 38, 0.35) 0%, rgba(7, 19, 38, 0.1) 45%, rgba(46, 107, 255, 0.12) 100%),
    linear-gradient(to top, rgba(7, 19, 38, 0.92) 0%, rgba(7, 19, 38, 0.55) 45%, rgba(7, 19, 38, 0.35) 100%),
    url("/assets/login-hero.jpg") center center / cover no-repeat;
  transform: scale(1.02);
}

.gmrc-login__brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7, 19, 38, 0.88) 0%,
    rgba(7, 19, 38, 0.72) 50%,
    rgba(15, 28, 52, 0.85) 100%
  );
}

.gmrc-login__brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 48px 56px 40px;
}

.gmrc-login__logo {
  width: 200px;
  height: auto;
  margin-bottom: 56px;
}

.gmrc-login__title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gmrc-login__tagline {
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 1.05rem;
  font-weight: 600;
}

.gmrc-login__tagline span {
  color: #5b9fff;
}

.gmrc-login__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gmrc-login__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.gmrc-login__feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(46, 107, 255, 0.18);
  color: #6ea3ff;
}

.gmrc-login__feature-icon svg {
  width: 20px;
  height: 20px;
}

.gmrc-login__feature strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gmrc-login__feature p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--login-muted);
}

.gmrc-login__brand-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(168, 180, 200, 0.75);
}

.gmrc-login__brand-footer svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* —— Login panel (right) —— */

.gmrc-login__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(46, 107, 255, 0.08), transparent 60%),
    var(--login-bg);
}

.gmrc-login__card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 32px;
  border-radius: var(--login-radius);
  background: rgba(15, 28, 52, 0.82);
  border: 1px solid var(--login-panel-border);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(18px);
}

.gmrc-login__card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(46, 107, 255, 0.35), rgba(46, 107, 255, 0.12));
  border: 1px solid rgba(46, 107, 255, 0.35);
  color: #7eb0ff;
}

.gmrc-login__card-icon svg {
  width: 24px;
  height: 24px;
}

.gmrc-login__card-header {
  text-align: center;
  margin-bottom: 28px;
}

.gmrc-login__card-header h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gmrc-login__card-header p {
  margin: 0;
  color: var(--login-muted);
  font-size: 0.95rem;
}

/* —— Form —— */

.gmrc-login__field {
  margin-bottom: 18px;
}

.gmrc-login__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--login-muted);
}

.gmrc-login__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gmrc-login__input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: rgba(168, 180, 200, 0.65);
  pointer-events: none;
}

.gmrc-login__input-icon svg {
  width: 100%;
  height: 100%;
}

.gmrc-login__input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  border-radius: 12px;
  border: 1px solid rgba(46, 107, 255, 0.22);
  background: var(--login-input-bg);
  color: var(--login-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gmrc-login__input-wrap input::placeholder {
  color: rgba(168, 180, 200, 0.45);
}

.gmrc-login__input-wrap input:hover {
  border-color: rgba(46, 107, 255, 0.38);
}

.gmrc-login__input-wrap input:focus {
  outline: none;
  border-color: var(--login-accent);
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.22);
  background: rgba(7, 19, 38, 0.9);
}

.gmrc-login__toggle-password {
  position: absolute;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--login-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.gmrc-login__toggle-password:hover {
  color: var(--login-text);
  background: rgba(255, 255, 255, 0.06);
}

.gmrc-login__eye {
  width: 18px;
  height: 18px;
}

.gmrc-login__eye--hide {
  display: none;
}

.gmrc-login__toggle-password[aria-pressed="true"] .gmrc-login__eye--show {
  display: none;
}

.gmrc-login__toggle-password[aria-pressed="true"] .gmrc-login__eye--hide {
  display: block;
}

.gmrc-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.gmrc-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--login-muted);
  user-select: none;
}

.gmrc-login__remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gmrc-login__checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(46, 107, 255, 0.45);
  background: var(--login-input-bg);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gmrc-login__remember input:checked + .gmrc-login__checkbox {
  background: var(--login-accent);
  border-color: var(--login-accent);
}

.gmrc-login__remember input:checked + .gmrc-login__checkbox::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.gmrc-login__remember input:focus-visible + .gmrc-login__checkbox {
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.28);
}

.gmrc-login__link {
  color: var(--login-accent);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gmrc-login__link:hover {
  color: var(--login-accent-hover);
}

.gmrc-login__submit {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #3d7aff 0%, var(--login-accent) 55%, #255fe0 100%);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(46, 107, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gmrc-login__submit svg {
  width: 18px;
  height: 18px;
}

.gmrc-login__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(46, 107, 255, 0.42);
}

.gmrc-login__submit:active {
  transform: translateY(0);
}

.gmrc-login__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.35), 0 8px 24px rgba(46, 107, 255, 0.35);
}

.gmrc-login__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: rgba(168, 180, 200, 0.5);
  font-size: 0.82rem;
}

.gmrc-login__divider::before,
.gmrc-login__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(168, 180, 200, 0.15);
}

.gmrc-login__sso {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(46, 107, 255, 0.35);
  background: transparent;
  color: var(--login-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.65;
}

.gmrc-login__sso svg {
  width: 18px;
  height: 18px;
}

.gmrc-login__help {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--login-muted);
}

.gmrc-login__preview-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(168, 180, 200, 0.85);
  background: rgba(46, 107, 255, 0.08);
  border: 1px dashed rgba(46, 107, 255, 0.25);
}

.gmrc-login__mobile-footer {
  display: none;
  margin: 24px 0 0;
  font-size: 0.8rem;
  color: var(--login-muted);
}

/* —— Animations —— */

.gmrc-login__fade {
  opacity: 0;
  transform: translateY(12px);
  animation: gmrc-login-fade-in 0.55s ease forwards;
}

.gmrc-login__fade--1 { animation-delay: 0.05s; }
.gmrc-login__fade--2 { animation-delay: 0.12s; }
.gmrc-login__fade--3 { animation-delay: 0.18s; }
.gmrc-login__fade--4 { animation-delay: 0.24s; }
.gmrc-login__fade--5 { animation-delay: 0.3s; }
.gmrc-login__fade--6 { animation-delay: 0.36s; }
.gmrc-login__fade--card { animation-delay: 0.08s; }

@keyframes gmrc-login-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gmrc-login__fade {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .gmrc-login__submit:hover {
    transform: none;
  }
}

/* —— Tablet —— */

@media (max-width: 1100px) {
  .gmrc-login__brand {
    flex-basis: 38%;
    max-width: 38%;
  }

  .gmrc-login__brand-inner {
    padding: 40px 32px 32px;
  }

  .gmrc-login__logo {
    margin-bottom: 40px;
  }
}

/* —— Mobile —— */

@media (max-width: 767px) {
  .gmrc-login__shell {
    flex-direction: column;
  }

  .gmrc-login__brand {
    display: none;
  }

  .gmrc-login__main {
    min-height: 100vh;
    padding: 28px 20px;
  }

  .gmrc-login__card {
    padding: 32px 24px 24px;
  }

  .gmrc-login__mobile-footer {
    display: block;
    text-align: center;
  }
}

/* —— Access block (trial ended / suspended) —— */

.gmrc-login__block-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.gmrc-login__block-contact {
  font-size: 0.92rem;
  font-weight: 500;
}

#accessBlockMessage {
  white-space: normal;
  line-height: 1.55;
}
