*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --t0: #032129;
  --t1: #084255;
  --t2: #0c768a;
  --t3: #119eb1;
  --t4: #3fd3de;
  --t5: #8cf0f2;
  --t6: #d7fbfb;
  --white: #ffffff;
  --offwhite: #f4fafa;
  --ink: #071515;
  --muted: #5a7878;
  --border: #cde6e6;
  --form-bg: #f9fdfd;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: "Outfit", sans-serif;
  background: #eef5f5;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page-shell {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout {
  display: grid;
  grid-template-columns: 58% 42%;
  width: min(1360px, 97vw);
  height: min(820px, calc(100vh - 28px));
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 32px 80px rgba(5, 50, 50, 0.18),
    0 8px 24px rgba(5, 50, 50, 0.1);
}

.hero {
  position: relative;
  background: var(--t0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 15%, rgba(17, 158, 177, 0.65) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 80%, rgba(12, 118, 138, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(8, 66, 85, 0.8) 0%, transparent 70%),
    linear-gradient(160deg, #032129 0%, #084255 40%, #032129 100%);
  z-index: 0;
}

.hero-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(17, 158, 177, 0.06) 30%,
    transparent 50%,
    rgba(17, 158, 177, 0.04) 70%,
    transparent 100%
  );
  z-index: 1;
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% {
    opacity: 0.4;
    transform: translateX(-5%) translateY(-5%);
  }
  100% {
    opacity: 1;
    transform: translateX(5%) translateY(5%);
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(17, 158, 177, 0.28) 0%,
    rgba(12, 118, 138, 0.12) 35%,
    transparent 65%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.14s ease-out, top 0.14s ease-out;
  filter: blur(4px);
  z-index: 3;
}

.geo {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(17, 158, 177, 0.08);
  top: -160px;
  right: -160px;
}

.geo-circle-2 {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(17, 158, 177, 0.06);
  bottom: -80px;
  left: -60px;
}

.geo-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(63, 211, 222, 0.15), transparent);
  height: 1px;
  width: 60%;
  top: 42%;
  left: 0;
  z-index: 2;
}

.hero-top {
  position: relative;
  z-index: 4;
  padding: 36px 48px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.7s ease both;
}

.hero-logo-image {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.96;
  display: block;
}

.hero-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(63, 211, 222, 0.14);
  border: 1px solid rgba(63, 211, 222, 0.28);
  color: var(--t5);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-center {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(63, 211, 222, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  width: fit-content;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.08s ease both;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--t4);
  box-shadow: 0 0 10px var(--t4);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

.hero-pill span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-headline {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 3.8vw, 58px);
  font-weight: 900;
  line-height: 1;
  color: white;
  letter-spacing: -1px;
  animation: fadeUp 0.7s 0.13s ease both;
}

.hero-headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--t4);
  position: relative;
  display: inline-block;
}

.hero-headline em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--t4), transparent);
  border-radius: 2px;
}

.hero-sub {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 300;
  line-height: 1.7;
  max-width: 340px;
  animation: fadeUp 0.7s 0.18s ease both;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  animation: fadeUp 0.7s 0.23s ease both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  align-self: stretch;
}

.hero-bottom {
  position: relative;
  z-index: 4;
  padding: 0 48px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.7s 0.28s ease both;
}

.hero-bottom-text {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
}

.hero-bottom-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(63, 211, 222, 0.15), transparent);
}

.form-side {
  background: var(--offwhite);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}

.form-side::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 158, 177, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.topbar {
  padding: 36px 72px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeUp 0.5s ease both;
}

.topbar-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-activate {
  background: var(--t2);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 10px 18px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}

.btn-activate:hover {
  background: var(--t1);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(12, 118, 138, 0.25);
}

.form-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 72px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.form-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 10px;
  animation: fadeUp 0.5s 0.06s ease both;
}

.form-title {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  animation: fadeUp 0.5s 0.09s ease both;
}

.form-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 420px;
  animation: fadeUp 0.5s 0.12s ease both;
}

.field {
  margin-bottom: 12px;
  animation: fadeUp 0.5s ease both;
}

.field:nth-child(1) {
  animation-delay: 0.15s;
}

.field:nth-child(2) {
  animation-delay: 0.18s;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}

.input-wrap {
  position: relative;
}

input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}

input::placeholder {
  color: #b8d0d0;
}

input:focus {
  background: white;
  border-color: var(--t2);
  box-shadow: 0 0 0 4px rgba(12, 118, 138, 0.09);
}

.eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  transition: color 0.15s;
}

.eye-btn:hover {
  color: var(--t2);
}

.btn-login {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  background: var(--t2);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s 0.22s ease both;
}

.btn-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
}

.btn-login:hover {
  background: var(--t1);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(12, 118, 138, 0.3);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: none;
}

#loading-animation {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.55rem;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.75s linear infinite;
}

.form-footer {
  padding: 12px 72px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  animation: fadeUp 0.5s 0.28s ease both;
  width: 100%;
  max-width: none;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link--stack {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 10px;
  row-gap: 1px;
  align-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.footer-link--stack i {
  margin-top: 2px;
  grid-row: 1 / span 3;
}

.footer-link--stack span,
.footer-link--stack strong,
.footer-link--stack small {
  display: block;
}

.footer-link--stack strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: anywhere;
}

.footer-link--stack small {
  color: var(--muted);
  font-size: 11px;
}

.footer-link:hover {
  color: var(--t2);
}

.footer-link i,
.soc i {
  font-size: 14px;
}

.soc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  background: white;
  color: var(--muted);
}

.soc:hover {
  border-color: var(--t2);
  background: rgba(12, 118, 138, 0.06);
  transform: translateY(-1px);
}

.col-xl-3.col-lg-4.col-sm-6.mb-2 {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 980px) {
  html,
  body {
    overflow: auto;
  }

  .login-page-shell {
    padding: 14px;
  }

  .layout {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
    height: auto;
  }

  .hero {
    min-height: 420px;
  }

  .form-content,
  .topbar,
  .form-footer,
  .hero-top,
  .hero-center,
  .hero-bottom {
    padding-left: 28px;
    padding-right: 28px;
  }

  .form-footer {
    gap: 16px;
    align-items: flex-start;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Stats can wrap instead of clipping at the panel edge */
  .hero-stats {
    flex-wrap: wrap;
    gap: 18px 28px;
  }
}

/* Small phones: compact brand panel, the login form is the star */
@media (max-width: 640px) {
  .login-page-shell {
    padding: 10px;
  }

  .hero {
    min-height: 0;
  }

  .hero-top {
    padding-top: 20px;
  }

  .hero-center {
    padding-top: 10px;
    padding-bottom: 24px;
  }

  .hero-headline {
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero-sub {
    margin-top: 12px;
    font-size: 13px;
  }

  .hero-stats,
  .hero-bottom,
  .geo {
    display: none;
  }

  /* Label is redundant next to the form heading; stop the 3-line wrap next to the chip */
  .topbar {
    padding-top: 20px;
    gap: 12px;
  }

  .topbar-label {
    display: none;
  }

  .form-title {
    font-size: 28px;
  }
}
