/* RMCS Admin Login — mark left, white card center, copy right */

:root {
  --rmcs-login-blue: #1e6fe8;
  --rmcs-login-blue-deep: #0d4bb8;
  --rmcs-login-sky: #4a9bff;
  --rmcs-login-navy: #0b1f3a;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--rmcs-login-blue);
}

.rmcs-login {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.rmcs-login-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #1a5fd4 0%, #2b7ef0 42%, #4aa3ff 100%);
  z-index: 0;
}

.rmcs-login-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.rmcs-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
}

.rmcs-login-orb--1 {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  left: -8%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  animation: rmcs-orb-drift 14s ease-in-out infinite;
}

.rmcs-login-orb--2 {
  width: 30vw;
  height: 30vw;
  max-width: 360px;
  max-height: 360px;
  right: -6%;
  top: -10%;
  background: radial-gradient(circle, rgba(11, 31, 58, 0.35) 0%, transparent 70%);
  animation: rmcs-orb-drift 18s ease-in-out infinite reverse;
}

.rmcs-login-orb--3 {
  width: 18vw;
  height: 18vw;
  max-width: 220px;
  max-height: 220px;
  left: 42%;
  top: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
  animation: rmcs-orb-pulse 8s ease-in-out infinite;
}

.rmcs-login-stage {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

/* ---- Left mark (former watermark, fully visible) ---- */
.rmcs-login-mark {
  justify-content: flex-end;
  align-items: center;
  padding-right: 0.5rem;
  animation: rmcs-fade-up 0.7s ease-out both;
}

.rmcs-login-mark-img {
  width: min(380px, 32vw);
  height: auto;
  display: block;
  opacity: 0.12;
  filter: brightness(0) invert(1);
  user-select: none;
  animation: rmcs-mark-float 6s ease-in-out infinite;
}

/* ---- Right copy ---- */
.rmcs-login-copy {
  color: #fff;
  animation: rmcs-fade-up 0.7s ease-out both;
}

.rmcs-login-copy-inner {
  max-width: 340px;
}

.rmcs-login-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.rmcs-login-headline {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.rmcs-login-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.rmcs-login-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rmcs-login-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  animation: rmcs-fade-up 0.7s ease-out both;
}

.rmcs-login-features li:nth-child(1) { animation-delay: 0.15s; }
.rmcs-login-features li:nth-child(2) { animation-delay: 0.28s; }
.rmcs-login-features li:nth-child(3) { animation-delay: 0.4s; }

.rmcs-login-features i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- Center card (solid white) ---- */
.rmcs-login-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rmcs-fade-up 0.65s ease-out 0.08s both;
}

.rmcs-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow:
    0 24px 48px rgba(11, 31, 58, 0.22),
    0 2px 8px rgba(11, 31, 58, 0.08);
}

.rmcs-login-card-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.15rem;
}

.rmcs-login-card-logo img {
  width: min(88px, 28vw);
  height: auto;
  display: block;
}

.rmcs-login-title {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rmcs-login-navy);
}

.rmcs-login-subtitle {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.45;
}

.rmcs-login-form .form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.rmcs-login-form .input-group-text {
  background: #f3f5f9;
  border-color: #e5e7eb;
  color: #6b7280;
}

.rmcs-login-form .form-control {
  background: #f3f5f9;
  border-color: #e5e7eb;
  min-height: 2.75rem;
}

.rmcs-login-form .form-control:focus {
  background: #fff;
  border-color: var(--rmcs-login-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 111, 232, 0.15);
}

.rmcs-login-form .input-group:focus-within .input-group-text {
  border-color: var(--rmcs-login-blue);
  background: #fff;
}

.rmcs-login-submit {
  min-height: 2.85rem;
  font-weight: 600;
  border-radius: 0.65rem;
  background: var(--rmcs-login-blue);
  border-color: var(--rmcs-login-blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rmcs-login-submit:hover {
  background: var(--rmcs-login-blue-deep);
  border-color: var(--rmcs-login-blue-deep);
  box-shadow: 0 8px 20px rgba(30, 111, 232, 0.35);
  transform: translateY(-1px);
}

.rmcs-login-powered {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
}

.rmcs-login-powered-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.rmcs-login-powered-dot {
  opacity: 0.55;
}

.rmcs-login-powered-label {
  opacity: 0.85;
}

.rmcs-login-powered a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color .2s ease, border-color .2s ease;
}

.rmcs-login-powered a:hover,
.rmcs-login-powered a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.rmcs-login-mobile-copy {
  margin: 1rem 0 0;
  text-align: center;
  max-width: 280px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* Mobile */
@media (max-width: 991.98px) {
  .rmcs-login-card {
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: 1.1rem;
  }
}

/* Desktop: mark left | card | copy right */
@media (min-width: 992px) {
  .rmcs-login {
    padding: 2rem;
  }

  .rmcs-login-stage {
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 400px) minmax(280px, 1fr);
    gap: 2rem;
  }

  .rmcs-login-mark {
    justify-content: flex-end;
  }

  .rmcs-login-copy {
    justify-content: flex-start;
    padding-left: 0.5rem;
  }

  .rmcs-login-mark-img {
    width: min(420px, 34vw);
  }
}

@media (min-width: 1200px) {
  .rmcs-login-stage {
    gap: 2.5rem;
  }

  .rmcs-login-card {
    padding: 2.25rem 1.75rem 2rem;
  }

  .rmcs-login-mark-img {
    width: min(460px, 32vw);
  }
}

/* ---- Animations ---- */
@keyframes rmcs-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rmcs-mark-float {
  0%, 100% { opacity: 0.1; transform: translateY(0); }
  50% { opacity: 0.16; transform: translateY(-10px); }
}

@keyframes rmcs-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -22px); }
}

@keyframes rmcs-orb-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .rmcs-login-copy,
  .rmcs-login-card-wrap,
  .rmcs-login-mark,
  .rmcs-login-features li,
  .rmcs-login-mark-img,
  .rmcs-login-orb {
    animation: none !important;
  }
}

/* The PNG logos are 15:16, not square: keep their shape inside fixed square boxes. */
img[src*="Lsense/logo-"] {
  object-fit: contain;
}
