:root {
  --labsync-navy: #102e43;
  --labsync-teal: #087f76;
  --labsync-mint: #42d8c9;
  --labsync-mist: #f4fafa;
  --labsync-white: #ffffff;
  --labsync-text: #193747;
  --labsync-border: #dce9e8;
  --labsync-font: "Segoe UI", Inter, Arial, sans-serif;
}

body.labsync-auth {
  min-height: 100vh;
  margin: 0;
  color: var(--labsync-text);
  background: var(--labsync-mist);
  font-family: var(--labsync-font);
}

.labsync-auth .auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
}

.labsync-auth .auth-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--labsync-white);
  background: var(--labsync-navy);
  isolation: isolate;
}

.labsync-auth .auth-brand-panel::before,
.labsync-auth .auth-brand-panel::after {
  position: absolute;
  z-index: -1;
  width: min(62vw, 44rem);
  aspect-ratio: 1;
  border: 1px solid rgba(66, 216, 201, .38);
  border-radius: 50%;
  content: "";
}

.labsync-auth .auth-brand-panel::before {
  top: -28%;
  right: -40%;
  box-shadow: 0 0 0 2.5rem rgba(66, 216, 201, .05), 0 0 0 6rem rgba(66, 216, 201, .04);
  animation: labsync-orbit 14s ease-in-out infinite alternate;
}

.labsync-auth .auth-brand-panel::after {
  bottom: -34%;
  left: -38%;
  border-color: rgba(255, 255, 255, .18);
  animation: labsync-orbit 17s ease-in-out infinite alternate-reverse;
}

.labsync-auth .auth-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(13rem, 65%);
  height: auto;
  animation: auth-mark-in 1s ease-out both;
}

.labsync-auth .auth-brand-message {
  position: relative;
  z-index: 1;
  max-width: 31rem;
  margin-top: auto;
  margin-bottom: auto;
  animation: labsync-enter .8s .12s cubic-bezier(.2,.8,.2,1) both;
}

.labsync-auth .auth-brand-kicker {
  margin: 0 0 .9rem;
  color: var(--labsync-mint);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.labsync-auth .auth-brand-message h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--labsync-white);
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1.04;
}

.labsync-auth .auth-brand-message p:last-child {
  max-width: 34ch;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
  line-height: 1.6;
}

.labsync-auth .auth-brand-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255, 255, 255, .68);
  font-size: .82rem;
}

.labsync-auth .auth-brand-footer::before {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--labsync-mint);
  box-shadow: 0 0 0 .25rem rgba(66, 216, 201, .16);
  content: "";
}

.labsync-auth .auth-content-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, #fff 0%, var(--labsync-mist) 100%);
}

.labsync-auth .auth-content-panel::before,
.labsync-auth .auth-content-panel::after {
  position: absolute;
  z-index: -1;
  width: clamp(17rem, 38vw, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(3px);
  opacity: .65;
  content: "";
  pointer-events: none;
}

.labsync-auth .auth-content-panel::before {
  top: -15%;
  right: -12%;
  background: radial-gradient(circle, rgba(66, 216, 201, .24) 0%, rgba(66, 216, 201, 0) 68%);
  animation: labsync-float-a 13s ease-in-out infinite alternate;
}

.labsync-auth .auth-content-panel::after {
  bottom: -22%;
  left: -14%;
  background: radial-gradient(circle, rgba(8, 127, 118, .16) 0%, rgba(8, 127, 118, 0) 70%);
  animation: labsync-float-b 16s ease-in-out infinite alternate;
}

.labsync-auth .auth-card {
  position: relative;
  width: min(100%, 31rem);
  padding: clamp(1.65rem, 4vw, 3.15rem);
  border: 1px solid rgba(220, 233, 232, .92);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1.25rem 4rem rgba(16, 46, 67, .12);
  animation: labsync-card-in .75s .08s cubic-bezier(.2,.8,.2,1) both;
}

.labsync-auth .auth-mobile-mark {
  display: none;
  width: 9.5rem;
  margin: 0 auto 2rem;
}

.labsync-auth .auth-card > :not(script) {
  animation: labsync-content-in .5s cubic-bezier(.2,.8,.2,1) both;
}

.labsync-auth .auth-card > :not(script):nth-child(1) { animation-delay: .16s; }
.labsync-auth .auth-card > :not(script):nth-child(2) { animation-delay: .23s; }
.labsync-auth .auth-card > :not(script):nth-child(3) { animation-delay: .3s; }

.labsync-auth .login100-form > *,
.labsync-auth #register_form > * {
  animation: labsync-content-in .48s cubic-bezier(.2,.8,.2,1) both;
}

.labsync-auth .login100-form > :nth-child(1),
.labsync-auth #register_form > :nth-child(1) { animation-delay: .28s; }
.labsync-auth .login100-form > :nth-child(2),
.labsync-auth #register_form > :nth-child(2) { animation-delay: .35s; }
.labsync-auth .login100-form > :nth-child(3),
.labsync-auth #register_form > :nth-child(3) { animation-delay: .42s; }
.labsync-auth .login100-form > :nth-child(4),
.labsync-auth #register_form > :nth-child(4) { animation-delay: .49s; }
.labsync-auth .login100-form > :nth-child(n + 5),
.labsync-auth #register_form > :nth-child(n + 5) { animation-delay: .56s; }

.labsync-auth .login100-form,
.labsync-auth #register_form {
  width: 100%;
}

.labsync-auth .login100-form-title {
  display: block;
  margin: 0 0 1.75rem;
  padding: 0 !important;
  color: var(--labsync-navy);
  font-family: var(--labsync-font);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.labsync-auth .auth-form-description {
  margin: -1.1rem 0 1.65rem;
  color: #58717d;
  font-size: .94rem;
  line-height: 1.5;
}

.labsync-auth .auth-field {
  margin-bottom: 1.15rem;
}

.labsync-auth .auth-field label {
  display: block;
  margin: 0 0 .45rem;
  color: #365462;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .015em;
}

.labsync-auth .auth-input {
  display: block;
  width: 100%;
  min-height: 3.3rem;
  padding: .75rem .9rem;
  border: 1px solid #b9d3d1;
  border-radius: .7rem;
  outline: 0;
  color: var(--labsync-text);
  background: var(--labsync-white);
  box-shadow: inset 0 1px 0 rgba(16, 46, 67, .03);
  font: 400 1rem/1.4 var(--labsync-font);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.labsync-auth .auth-input:hover { border-color: #78aaa6; }

.labsync-auth .auth-input:focus {
  border-color: var(--labsync-teal);
  box-shadow: 0 0 0 .24rem rgba(8, 127, 118, .16);
  transform: translateY(-1px);
}

.labsync-auth .auth-field.error-validation .auth-input {
  border-color: #c74848;
}

.labsync-auth .auth-age-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, .7fr);
  gap: .8rem;
}

.labsync-auth .auth-choice-field {
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.labsync-auth .auth-choice-field legend {
  margin: 0 0 .55rem;
  color: #365462;
  font-size: .82rem;
  font-weight: 700;
}

.labsync-auth .auth-choice-options {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 3rem;
  padding: .55rem .8rem;
  border: 1px solid #b9d3d1;
  border-radius: .7rem;
}

.labsync-auth .auth-choice-options br { display: none; }
.labsync-auth .auth-choice-options label { margin: 0 0 0 -.7rem; color: #365462; }
.labsync-auth .auth-registration { padding-bottom: .25rem; }

.labsync-auth .auth-registration .select2-container { width: 100% !important; }
.labsync-auth .auth-registration .select2-selection--single {
  height: 3.3rem;
  border: 1px solid #b9d3d1;
  border-radius: .7rem;
}
.labsync-auth .auth-registration .select2-selection__rendered { padding: .8rem .9rem; line-height: 1.4; }
.labsync-auth .auth-registration .select2-selection__arrow { height: 3.2rem; }

.labsync-auth .auth-registration-link,
.labsync-auth .auth-staff-note {
  margin: 1.75rem 0 0;
  color: #58717d;
  font-size: .92rem;
  line-height: 1.55;
}

.labsync-auth .auth-registration-link a {
  display: inline-block;
  margin-left: .3rem;
}

.labsync-auth .wrap-input100 {
  width: 100%;
  height: 3.9rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--labsync-border);
  border-radius: .75rem;
  background: var(--labsync-white);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.labsync-auth .wrap-input100:focus-within {
  border-color: var(--labsync-teal);
  box-shadow: 0 0 0 .22rem rgba(8, 127, 118, .16);
  transform: translateY(-1px);
}

.labsync-auth .input100 {
  height: 100%;
  padding: 1.42rem .95rem .42rem;
  color: var(--labsync-text);
  font-family: var(--labsync-font);
  font-size: 1rem;
  background: transparent;
}

.labsync-auth .focus-input100 {
  border-radius: .75rem;
}

.labsync-auth .input100:focus + .focus-input100 {
  box-shadow: 0 0 0 .22rem rgba(8, 127, 118, .16);
}

.labsync-auth .label-input100 {
  top: .58rem;
  left: .95rem;
  color: #58717d;
  font-family: var(--labsync-font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.labsync-auth .login100-form-btn {
  position: relative;
  min-height: 3.35rem;
  border-radius: .7rem;
  background: var(--labsync-teal);
  box-shadow: 0 .7rem 1.25rem rgba(8, 127, 118, .18);
  color: var(--labsync-white);
  font-family: var(--labsync-font);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.labsync-auth .login100-form-btn:hover,
.labsync-auth .login100-form-btn:focus {
  background: #076e67;
  box-shadow: 0 .9rem 1.6rem rgba(8, 127, 118, .24);
  transform: translateY(-1px);
}

.labsync-auth .login100-form-btn.is-submitting,
.labsync-auth .login100-form-btn.is-submitting:hover,
.labsync-auth .login100-form-btn.is-submitting:focus {
  background: var(--labsync-teal);
  box-shadow: 0 .7rem 1.25rem rgba(8, 127, 118, .18);
  color: transparent;
  cursor: wait;
  transform: none;
}

.labsync-auth .login100-form-btn.is-submitting::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin: -.55rem 0 0 -.55rem;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: var(--labsync-white);
  border-radius: 50%;
  animation: auth-button-spin .7s linear infinite;
}

@keyframes auth-button-spin {
  to { transform: rotate(360deg); }
}

.labsync-auth .txt1,
.labsync-auth .login100-form a {
  color: var(--labsync-teal);
  font-family: var(--labsync-font);
  font-weight: 700;
}

.labsync-auth .contact100-form-checkbox {
  color: #58717d;
}

@keyframes labsync-enter {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes labsync-card-in {
  from { opacity: 0; transform: translateX(1.4rem) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes labsync-orbit {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(-2.5%, 3%, 0) rotate(8deg); }
}

@keyframes labsync-content-in {
  from { opacity: 0; transform: translateY(.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes labsync-float-a {
  from { transform: translate3d(-3%, -2%, 0) scale(.96); }
  to { transform: translate3d(7%, 8%, 0) scale(1.08); }
}

@keyframes labsync-float-b {
  from { transform: translate3d(4%, 4%, 0) scale(1); }
  to { transform: translate3d(-7%, -8%, 0) scale(1.1); }
}

@media (max-width: 760px) {
  .labsync-auth .auth-shell { grid-template-columns: 1fr; }
  .labsync-auth .auth-brand-panel { display: none; }
  .labsync-auth .auth-content-panel { min-height: 100vh; padding: 1rem; }
  .labsync-auth .auth-content-panel::before { top: -9rem; right: -8rem; opacity: .8; }
  .labsync-auth .auth-content-panel::after { bottom: -10rem; left: -8rem; opacity: .7; }
  .labsync-auth .auth-card { padding: 2rem 1.4rem; box-shadow: 0 1rem 2.5rem rgba(16, 46, 67, .1); }
  .labsync-auth .auth-mobile-mark { display: block; animation: labsync-mobile-mark 4.8s ease-in-out infinite; }
  .labsync-auth .auth-age-fields { grid-template-columns: 1fr; gap: 0; }
}

@keyframes labsync-mobile-mark {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.32rem); }
}

@media (prefers-reduced-motion: reduce) {
  .labsync-auth *,
  .labsync-auth *::before,
  .labsync-auth *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Decorative scattered lab icons + logo animation */
.labsync-auth .auth-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.labsync-auth .auth-decor .lab-icon {
  position: absolute;
  display: inline-block;
  color: var(--labsync-mint);
  font-size: 2.6rem;
  opacity: .18;
  animation: auth-float 6s ease-in-out infinite;
}
.labsync-auth .auth-decor .lab-icon:nth-child(1) { top: 22%; left: 8%; animation: auth-pulse 3.2s ease-in-out infinite; }
.labsync-auth .auth-decor .lab-icon:nth-child(2) { top: 9%; right: 8%; animation: auth-rotate 8s linear infinite; }
.labsync-auth .auth-decor .lab-icon:nth-child(3) { bottom: 32%; left: 10%; animation: auth-float 5s ease-in-out infinite .4s; }
.labsync-auth .auth-decor .lab-icon:nth-child(4) { bottom: 20%; right: 8%; animation: auth-scale 4s ease-in-out infinite .8s; }
.labsync-auth .auth-decor .lab-icon:nth-child(5) { top: 33%; left: 4%; animation: auth-pulse 3.8s ease-in-out infinite 1s; }
.labsync-auth .auth-decor .lab-icon:nth-child(6) { top: 70%; left: 30%; animation: auth-float 7s ease-in-out infinite 1.2s; }

@keyframes auth-pulse { 0%,100% { opacity: .12; transform: scale(1);} 50% { opacity: .35; transform: scale(1.25);} }
@keyframes auth-float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-24px);} }
@keyframes auth-rotate { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }
@keyframes auth-scale { 0%,100% { transform: scale(1);} 50% { transform: scale(1.35);} }

@keyframes auth-mark-in { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: translateY(0);} }

@media (prefers-reduced-motion: reduce) {
  .labsync-auth .auth-decor .lab-icon,
  .labsync-auth .auth-wordmark { animation: none !important; }
}
