:root {
  --dark-green: #006B35;
  --green: #129447;
  --medium-green: #24C464;
  --lime: #D3FC08;
  --mint: #47FA91;
  --light-mint: #BDF5D3;
  --off-white: #FCFDFB;
  --text: #123A26;
  --muted: #6D786F;
  --border: #D8E8DD;
  --error: #E44747;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--off-white);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--dark-green);
}

.login-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(420px, 42%);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(71, 250, 145, .27), rgba(189, 245, 211, .15) 18rem, transparent 36rem),
    radial-gradient(circle at 94% 4%, rgba(211, 252, 8, .62), rgba(211, 252, 8, .18) 13rem, transparent 29rem),
    var(--off-white);
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -22%;
  z-index: -1;
  width: 78%;
  height: 45%;
  border-radius: 68% 0 0 0 / 100% 0 0 0;
  pointer-events: none;
  transform: rotate(-5deg);
  transform-origin: right bottom;
}



.login-page::before {
  right: -12%;
  bottom: -13%;
  background: #9BEFBF;
}

.login-page::after {
  background: #24C464;
}

.event-panel {
  display: grid;
  grid-template-rows: auto minmax(270px, 1fr) auto;
  min-width: 0;
  min-height: 100svh;
  padding: clamp(24px, 4vh, 50px) clamp(28px, 4.3vw, 76px) clamp(28px, 4.5vh, 56px);
}

.event-header,
.event-copy,
.island-stage,
.login-panel,
.login-card,
.login-card form {
  min-width: 0;
  max-width: 100%;
}

.event-header,
.event-copy {
  position: relative;
  z-index: 4;
}

.brand-lockup {
  width: clamp(190px, 18vw, 280px);
}

.igem-logo {
  width: 100%;
  height: auto;
}

.event-details {
  display: grid;
  gap: 12px;
  width: min(100%, 470px);
  margin-top: 20px;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--dark-green);
  font-size: clamp(.98rem, 1.25vw, 1.25rem);
  font-weight: 800;
  line-height: 1.3;
}

.event-detail-icon {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #82c63d;
  border-radius: 50%;
  font-size: 1.25rem;
}

.island-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-self: center;
  width: min(100%, 760px);
  min-height: 300px;
  margin: -12px auto -20px;
  pointer-events: none;
  transform: translate(150px, -20px);
}

.floating-island {
  position: relative;
  z-index: 3;
  width: min(96%, 710px);
  max-height: 50vh;
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(18, 58, 38, .2));
  animation: island-float 5.6s ease-in-out infinite;
}

.island-shadow {
  position: absolute;
  bottom: 11%;
  left: 50%;
  z-index: 1;
  width: 48%;
  height: 26px;
  background: rgba(18, 58, 38, .2);
  border-radius: 50%;
  filter: blur(15px);
  transform: translateX(-50%);
  animation: shadow-pulse 5.6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  border: 1.5px solid rgba(36, 196, 100, .62);
  border-radius: 50%;
}

.orbit-outer {
  width: min(74%, 525px, 52vh);
  aspect-ratio: 1;
  animation: orbit-clockwise 24s linear infinite;
}

.orbit-inner {
  width: min(56%, 400px, 40vh);
  aspect-ratio: 1;
  border-color: rgba(18, 148, 71, .43);
  animation: orbit-counter 32s linear infinite;
}

.orbit-node {
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--medium-green);
  border: 2px solid var(--off-white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(36, 196, 100, .35);
  transform: translate(-50%, -50%);
}

.node-a { top: 14.6447%; left: 14.6447%; }
.node-b { top: 75%; left: 93.3013%; }
.node-c { top: 14.6447%; left: 85.3553%; }

.orbit-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green);
  background: #fff;
  border: 2px solid var(--medium-green);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(18, 148, 71, .14);
  font-size: 1.18rem;
}

.orbit-leaf {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

.orbit-leaf .orbit-upright {
  animation: keep-upright-clockwise 24s linear infinite;
}

.orbit-recycle {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-recycle .orbit-upright {
  animation: keep-upright-counter 32s linear infinite;
}

.orbit-upright {
  display: grid;
  place-items: center;
}

.orbit-upright img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.orbit-leaf img {
  filter: brightness(0) saturate(100%) invert(51%) sepia(91%) saturate(529%) hue-rotate(91deg) brightness(95%) contrast(92%);
}

.orbit-recycle img {
  width: 25px;
  height: 25px;
}

.event-copy {
  max-width: 730px;
}

.event-copy h1 {
  margin: 0 0 14px;
  color: var(--dark-green);
  font-size: clamp(1.7rem, 2.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -.025em;
}

.event-copy h1 span {
  color: var(--medium-green);
}

.event-copy p {
  max-width: 690px;
  margin: 0;
  color: #33443a;
  font-size: clamp(.94rem, 1vw, 1.08rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.login-panel {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(20px, 4vh, 56px) clamp(22px, 3.8vw, 62px);
}

.login-card {
  width: min(100%, 590px);
  padding: clamp(30px, 4.7vh, 50px) clamp(28px, 3.8vw, 56px);
  background: rgba(255, 255, 255, .97);
  border: 1.5px solid rgba(18, 148, 71, .72);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(18, 148, 71, .18), 0 3px 10px rgba(0, 107, 53, .12);
}

.login-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  color: var(--dark-green);
  background: linear-gradient(145deg, rgba(211, 252, 8, .32), rgba(71, 250, 145, .18));
  border: 3px solid #83c63e;
  border-radius: 50%;
  font-size: 1.9rem;
}

.login-card h2 {
  margin: 0;
  color: var(--dark-green);
  text-align: center;
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.login-subtitle {
  margin: 9px auto 28px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.form-field {
  margin-bottom: 18px;
}

.form-label {
  margin-bottom: 8px;
  color: #284e34;
  font-size: .92rem;
  font-weight: 750;
}

.form-label span {
  color: var(--error);
}

.input-wrap {
  position: relative;
}

.input-wrap > .bi {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  color: #89958d;
  font-size: 1.08rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-control {
  min-height: 52px;
  padding: 12px 50px 12px 46px;
  color: var(--text);
  background: #fff;
  border: 1px solid #c9d6ce;
  border-radius: 10px;
  box-shadow: none;
}

.form-control::placeholder {
  color: #9ba69f;
}

.form-control:hover {
  border-color: #9ab9a6;
}

.form-control.is-invalid {
  padding-right: 50px;
  background-image: none;
  border-color: var(--error);
}

.password-toggle {
  position: absolute;
  top: 4px;
  right: 5px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #66746b;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 1.1rem;
}

.password-toggle:hover {
  color: var(--dark-green);
  background: rgba(189, 245, 211, .35);
}

.field-error {
  min-height: 0;
  margin: 5px 0 0;
  color: var(--error);
  font-size: .81rem;
  font-weight: 600;
}

.field-error:empty {
  margin: 0;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: .91rem;
}

.form-check {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding-left: 1.75rem;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  margin-left: -1.75rem;
  border-color: #b5c5bb;
}

.form-check-input:checked {
  background-color: var(--green);
  border-color: var(--green);
}

.sign-in-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 56px;
  padding: 12px 22px;
  color: #123a26;
  background: linear-gradient(90deg, #D3FC08 4%, #47FA91 100%);
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sign-in-button:hover {
  box-shadow: 0 10px 25px rgba(36, 196, 100, .25);
  transform: translateY(-1px);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 22px;
  color: #526159;
  font-size: .8rem;
  font-weight: 700;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed #aebbb3;
}

.or-divider-x {
    display: flex;
    align-items: center;
    margin: 26px 0 22px;
    color: #526159;
    font-size: .8rem;
    font-weight: 700;
}

.register-copy {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: .91rem;
}

.register-copy-v {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 10px;
}

.form-control:focus,
.form-check-input:focus,
.password-toggle:focus-visible,
.sign-in-button:focus-visible,
a:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(71, 250, 145, .34);
  outline-offset: 2px;
  box-shadow: none;
}

@keyframes island-float {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}

@keyframes shadow-pulse {
  0%, 100% { opacity: .7; transform: translateX(-50%) scale(.93); }
  50% { opacity: .4; transform: translateX(-50%) scale(1.06); }
}

@keyframes orbit-clockwise {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-counter {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes keep-upright-clockwise {
  from { transform: rotate(0); }
  to { transform: rotate(-360deg); }
}

@keyframes keep-upright-counter {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@media (min-width: 992px) {
  .login-page,
  .event-panel,
  .login-panel {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .event-panel {
    grid-template-rows: auto minmax(205px, 1fr) auto;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .brand-lockup { width: 185px; }
  .event-details { gap: 7px; margin-top: 9px; }
  .event-detail { font-size: .88rem; }
  .event-detail-icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 1rem; }
  .floating-island { width: min(80%, 550px); max-height: 38vh; }
  .orbit-outer { width: min(62%, 380px, 42vh); }
  .orbit-inner { width: min(47%, 290px, 32vh); }
  .event-copy h1 { margin-bottom: 7px; font-size: 1.38rem; }
  .event-copy p { font-size: .83rem; line-height: 1.4; }
  .login-panel { padding-top: 14px; padding-bottom: 14px; }
  .login-card { padding-top: 22px; padding-bottom: 22px; }
  .login-icon { width: 54px; height: 54px; margin-bottom: 8px; font-size: 1.35rem; }
  .login-card h2 { font-size: 1.65rem; }
  .login-subtitle { margin: 5px auto 15px; font-size: .9rem; }
  .form-field { margin-bottom: 10px; }
  .form-label { margin-bottom: 5px; }
  .form-options { margin-bottom: 10px; }
  .sign-in-button { min-height: 48px; }
  .or-divider { margin: 14px 0 12px; }
}

@media (max-width: 1199.98px) {
  .login-page { grid-template-columns: minmax(0, 55%) minmax(410px, 45%); }
  .event-panel { padding-right: 28px; padding-left: 38px; }
  .login-panel { padding-right: 28px; padding-left: 28px; }
}

@media (max-width: 991.98px) {
  .login-page {
    display: block;
    overflow: hidden visible;
  }

  .login-page::before,
  .login-page::after {
    position: fixed;
    right: -48%;
    bottom: -15%;
    width: 150%;
    height: 34%;
  }

  .event-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
  }

  .event-header,
  .island-stage,
  .event-copy,
  .login-panel {
    width: min(calc(100% - 36px), 720px);
    margin-right: auto;
    margin-left: auto;
  }

  .event-header { padding-top: 28px; }
  .brand-lockup { width: 245px; }
  .event-details { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .event-detail { font-size: .98rem; }

  .island-stage {
    min-height: 360px;
    margin-top: 8px;
    margin-bottom: -14px;
  }

  .floating-island { width: min(94%, 650px); max-height: 420px; }
  .event-copy { padding-bottom: 34px; }
  .login-panel { display: block; padding: 0 0 46px; }
  .login-card { width: 100%; }
}

@media (max-width: 575.98px) {
  .event-header,
  .island-stage,
  .event-copy,
  .login-panel {
    width: auto;
    max-width: none;
    margin-right: 14px;
    margin-left: 14px;
  }

  .event-header { padding-top: 20px; }
  .brand-lockup { width: 205px; max-width: 70vw; }
  .event-details { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .event-detail-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 1.08rem; }

  .island-stage {
    min-height: clamp(265px, 78vw, 360px);
    margin-top: 2px;
    transform: translate(0, 0);
  }
  .floating-island { width: 86%; }
  .orbit-outer { width: min(82%, 295px); }
  .orbit-inner { width: min(62%, 225px); }
  .orbit-badge { width: 36px; height: 36px; font-size: 1rem; }
  .node-b { display: none; }

  .event-copy { padding-right: 16px; }
  .event-copy h1 { font-size: clamp(1.42rem, 6vw, 1.75rem); }
  .event-copy p { font-size: .94rem; line-height: 1.55; }
  .login-card { width: calc(100% - 28px); max-width: 100%; margin-right: auto; margin-left: auto; padding: 32px 20px; overflow: hidden; border-radius: 18px; }
  .login-icon { width: 64px; height: 64px; }
  .form-options { align-items: flex-start; flex-direction: column; gap: 2px; }
  .form-options > a { display: flex; align-items: center; min-height: 44px; }
}

@media (max-width: 359.98px) {
  .event-header,
  .island-stage,
  .event-copy,
  .login-panel {
    width: auto;
    margin-right: 10px;
    margin-left: 10px;
  }
  .event-detail { gap: 10px; font-size: .9rem; }
  .island-stage { min-height: 245px; }
  .login-card { padding: 28px 15px; }
  .event-copy h1 { font-size: 1.32rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .floating-island,
  .island-shadow,
  .orbit,
  .orbit-upright {
    animation: none !important;
  }

  .orbit {
    transform: translate(-50%, -50%);
  }
}
