/* Client portal login — split-screen (Synoviq brand tokens) */

.syn-portal-login {
  min-height: 100dvh;
  margin: 0;
  background: #ffffff;
  color: #032d42;
}

.syn-portal-login__shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.syn-portal-login__form-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #ffffff;
  padding: 1.75rem 1.5rem 2.5rem;
}

.syn-portal-login__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: flex-start;
  margin: 0 0 0.5rem;
}

.syn-portal-login__logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 11.25rem;
  object-fit: contain;
  object-position: left center;
}

.syn-portal-login__form-inner {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: 22.5rem;
  flex-direction: column;
  justify-content: center;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.syn-portal-login__header h1 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #032d42;
}

.syn-portal-login__header p {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6c889a;
}

.syn-portal-login__form {
  margin-top: 1.75rem;
}

.syn-portal-login__field {
  margin-bottom: 1rem;
}

.syn-portal-login__label {
  display: block;
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #032d42;
}

.syn-portal-login__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0.375rem;
  border: 1px solid #bccad4;
  background: #ffffff;
  color: #032d42;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  /* Horizontal padding is the text-inset reference for field errors */
  padding: 0.7rem 0.85rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Live AJAX field errors — align with input text, not the border edge */
.syn-portal-login__field .syn-live-feedback {
  margin-top: 0.3125rem; /* ~5px between input and error */
  margin-bottom: 0;
  padding-inline: 0.85rem; /* match .syn-portal-login__input horizontal padding */
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #dc2626;
}

.syn-portal-login__field .syn-live-feedback.hidden {
  display: none;
}

.syn-portal-login__input::placeholder {
  color: #6c889a;
  opacity: 1;
}

.syn-portal-login__input:focus-visible {
  outline: none;
  border-color: #3eaa2b;
  box-shadow: 0 0 0 3px rgb(62 170 43 / 0.28);
}

.syn-portal-login__password-wrap {
  position: relative;
}

.syn-portal-login__input--password {
  padding-inline-end: 2.75rem;
}

.syn-portal-login__pw-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  z-index: 2;
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #6c889a;
  cursor: pointer;
  transform: translateY(-50%);
}

.syn-portal-login__pw-toggle:hover {
  background: #f2f5f7;
  color: #032d42;
}

.syn-portal-login__error {
  margin-bottom: 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid rgb(220 38 38 / 0.35);
  background: rgb(254 242 242);
  color: #991b1b;
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.65rem 0.75rem;
}

.syn-portal-login__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 1.25rem;
  font-size: 0.8125rem;
}

.syn-portal-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4a6778;
  cursor: pointer;
  user-select: none;
}

.syn-portal-login__checkbox {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.2rem;
  border: 1px solid #bccad4;
  accent-color: #3eaa2b;
}

.syn-portal-login__forgot {
  color: #00718f;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.syn-portal-login__forgot:hover {
  color: #024f69;
}

.syn-portal-login__footer-link {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
}

.syn-portal-login__submit {
  width: 100%;
  min-height: 2.75rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.875rem !important;
}

.syn-portal-login__form input.syn-portal-login__input.syn-live-invalid {
  border-color: #dc2626;
  /* Outer ring via box-shadow — keeps 1px border so width does not shift */
  box-shadow: 0 0 0 1px rgb(220 38 38 / 0.28);
}

.syn-portal-login__form input.syn-portal-login__input.syn-live-invalid:focus-visible {
  border-color: #dc2626;
  box-shadow:
    0 0 0 1px rgb(220 38 38 / 0.28),
    0 0 0 3px rgb(220 38 38 / 0.18);
}

/* Hero panel */
.syn-portal-login__hero {
  position: relative;
  display: none;
  flex: 1 1 auto;
  min-height: 14rem;
  overflow: hidden;
  background: #f2f5f7;
}

.syn-portal-login__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 78%, rgb(99 223 78 / 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 18%, rgb(36 194 206 / 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 55% 50%, rgb(3 45 66 / 0.04) 0%, transparent 70%),
    #f2f5f7;
}

.syn-portal-login__hero-scene {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  height: min(72vh, 28rem);
  margin: auto;
  transform-style: preserve-3d;
}

.syn-portal-login__connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.syn-portal-login__screen {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(58%, 18rem);
  aspect-ratio: 16 / 11;
  transform: translate(-50%, -50%) rotateX(12deg) rotateY(-18deg) rotateZ(4deg);
  border-radius: 0.75rem;
  background: linear-gradient(160deg, #032d42 0%, #124d6b 55%, #1b4459 100%);
  box-shadow:
    0 24px 48px rgb(3 45 66 / 0.28),
    0 2px 0 rgb(255 255 255 / 0.08) inset;
  overflow: hidden;
  animation: syn-portal-screen-float 6s ease-in-out infinite;
}

.syn-portal-login__screen-chrome {
  display: flex;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem 0.35rem;
}

.syn-portal-login__screen-chrome span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.22);
}

.syn-portal-login__screen-chrome span:first-child {
  background: #63df4e;
}

.syn-portal-login__screen-body {
  padding: 0.35rem 0.85rem 0.85rem;
}

.syn-portal-login__wave {
  display: block;
  width: 100%;
  height: 3.25rem;
}

.syn-portal-login__gauges {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.syn-portal-login__gauge {
  --pct: 60;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: conic-gradient(
    #63df4e calc(var(--pct) * 1%),
    rgb(255 255 255 / 0.12) 0
  );
}

.syn-portal-login__gauge i {
  position: absolute;
  inset: 0.35rem;
  border-radius: 9999px;
  background: #032d42;
}

.syn-portal-login__platform {
  position: absolute;
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow:
    0 10px 28px rgb(3 45 66 / 0.1),
    0 1px 0 rgb(255 255 255 / 0.8) inset;
  border: 1px solid #d7e0e6;
}

.syn-portal-login__platform--a {
  left: 8%;
  top: 18%;
  width: 7.5rem;
  padding: 0.75rem;
  animation: syn-portal-float-card 7s ease-in-out 0.4s infinite;
}

.syn-portal-login__platform--b {
  right: 10%;
  top: 22%;
  width: 6.5rem;
  padding: 0.85rem;
  animation: syn-portal-float-card 8s ease-in-out 0.8s infinite;
}

.syn-portal-login__platform--c {
  right: 16%;
  bottom: 16%;
  width: 6rem;
  padding: 0.75rem 0.85rem;
  animation: syn-portal-float-card 6.5s ease-in-out 1.1s infinite;
}

.syn-portal-login__mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  height: 3.5rem;
}

.syn-portal-login__mini-chart span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 0.2rem 0.2rem 0 0;
  background: linear-gradient(180deg, #63df4e, #032d42);
  opacity: 0.9;
}

.syn-portal-login__nodes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.syn-portal-login__nodes i {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0 auto;
  border-radius: 9999px;
  background: #f2f5f7;
  border: 2px solid #24c2ce;
  box-shadow: 0 0 0 3px rgb(36 194 206 / 0.12);
}

.syn-portal-login__nodes i:nth-child(2) {
  border-color: #63df4e;
  box-shadow: 0 0 0 3px rgb(99 223 78 / 0.15);
}

.syn-portal-login__nodes i:nth-child(3) {
  border-color: #00718f;
}

.syn-portal-login__stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #032d42;
  line-height: 1.1;
}

.syn-portal-login__stat span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c889a;
}

.syn-portal-login__figure {
  position: absolute;
  width: 0.85rem;
  height: 1.7rem;
  border-radius: 9999px 9999px 0.35rem 0.35rem;
  background: linear-gradient(180deg, #124d6b, #032d42);
  box-shadow: 0 4px 10px rgb(3 45 66 / 0.2);
}

.syn-portal-login__figure::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #63df4e;
  transform: translateX(-50%);
}

.syn-portal-login__figure--1 {
  left: 22%;
  bottom: 22%;
}

.syn-portal-login__figure--2 {
  left: 58%;
  bottom: 28%;
  transform: scale(0.9);
}

.syn-portal-login__figure--3 {
  right: 28%;
  top: 38%;
  transform: scale(0.85);
}

.syn-portal-login__hero-caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.5rem;
  width: min(90%, 26rem);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #517285;
}

@keyframes syn-portal-screen-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(12deg) rotateY(-18deg) rotateZ(4deg) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateX(12deg) rotateY(-18deg) rotateZ(4deg) translateY(-6px);
  }
}

@keyframes syn-portal-float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 1024px) {
  .syn-portal-login__shell {
    flex-direction: row;
    align-items: stretch;
  }

  .syn-portal-login__form-panel {
    flex: 0 0 40%;
    max-width: 40%;
    min-height: 100dvh;
    padding: 2rem clamp(1.75rem, 4vw, 3.25rem) 2.5rem;
    justify-content: flex-start;
  }

  .syn-portal-login__logo {
    margin-bottom: 0.25rem;
  }

  .syn-portal-login__form-inner {
    max-width: 22rem;
    /* Keep form column left-aligned with the top-left logo */
    margin-left: 0;
    padding-top: 0.75rem;
  }

  .syn-portal-login__hero {
    display: flex;
    flex: 1 1 60%;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  .syn-portal-login__hero {
    display: none;
  }
}
