* {
  box-sizing: border-box;
}

:root {
  --blue: #0757b8;
  --blue-light: #1984e8;
  --navy: #04142f;
  --navy-2: #082b60;
  --gold: #f2bf2f;
  --yellow: #ffd91a;
  --white: #ffffff;
  --text: #132642;
  --muted: #6c7d94;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: #eef5fd;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 217, 26, .13), transparent 24%),
    radial-gradient(circle at 85% 80%, rgba(7, 87, 184, .15), transparent 28%),
    linear-gradient(145deg, #f7fbff 0%, #eaf3ff 50%, #ffffff 100%);
}

.topbar {
  height: 78px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(7, 57, 120, .09);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 5;
}

.brand img {
  width: 175px;
  height: auto;
}

.back-link {
  font-size: 14px;
  font-weight: 800;
  color: #38516f;
  transition: .25s ease;
}

.back-link:hover {
  color: var(--blue);
  transform: translateX(-3px);
}

.login-main {
  flex: 1;
  min-height: calc(100vh - 130px);
  padding: 70px 20px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.login-card {
  width: min(1030px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(7, 57, 120, .1);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(9, 45, 91, .17);
  position: relative;
  z-index: 2;
}

.visual {
  min-height: 610px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 217, 26, .28), transparent 25%),
    linear-gradient(145deg, #082b60 0%, #0757b8 55%, #0b77d9 100%);
}

.visual::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, .025),
    0 0 0 70px rgba(255, 255, 255, .02);
}

.blue-orb {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #49a8ff, #0757b8 55%, #03275a);
  box-shadow:
    0 0 80px rgba(80, 174, 255, .22),
    inset 0 0 40px rgba(255, 255, 255, .08);
}

.main-logo {
  width: min(390px, 80%);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .22));
  animation: float 5s ease-in-out infinite;
}

.visual-caption {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  color: white;
}

.visual-caption strong {
  display: block;
  font-size: 17px;
  letter-spacing: .08em;
}

.visual-caption span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.coin {
  position: absolute;
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff4ad, #efb915 55%, #b97900);
  border: 5px solid #ffe47a;
  color: #815500;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .22);
  font-weight: 1000;
}

.coin-one {
  top: 13%;
  right: 11%;
  animation: float 4s ease-in-out infinite;
}

.coin-two {
  bottom: 18%;
  left: 10%;
  width: 56px;
  height: 56px;
  animation: float 4.5s ease-in-out infinite reverse;
}

.spark {
  position: absolute;
  z-index: 4;
  color: var(--yellow);
  text-shadow: 0 0 15px rgba(255, 217, 26, .8);
}

.spark-a {
  top: 20%;
  left: 17%;
  font-size: 24px;
}

.spark-b {
  right: 18%;
  bottom: 27%;
  font-size: 18px;
}

.spark-c {
  top: 37%;
  left: 11%;
  font-size: 26px;
}

.content {
  padding: 70px 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

h1 {
  margin: 13px 0 15px;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 span {
  color: #c99600;
}

.intro {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.login-button,
.secondary-button {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: .25s ease;
}

.login-button {
  margin-top: 30px;
  padding: 0 20px;
  gap: 15px;
  color: white;
  background: linear-gradient(135deg, #0b75df, #0757b8);
  box-shadow: 0 13px 30px rgba(7, 87, 184, .25);
}

.login-button b {
  font-size: 21px;
  transition: .25s ease;
}

.login-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(7, 87, 184, .32);
}

.login-button:hover b {
  transform: translateX(5px);
}

.secondary-button {
  margin-top: 12px;
  border: 1px solid #dbe5f1;
  color: #36516f;
  background: white;
}

.secondary-button:hover {
  border-color: #d6ae29;
  background: #fffaf0;
}

.info {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  border-radius: 15px;
  background: #f5f9ff;
  border: 1px solid #e3edf9;
}

.info-icon {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f3ff;
  color: var(--blue);
  font-weight: 1000;
}

.info strong {
  font-size: 13px;
}

.info p {
  margin: 3px 0 0;
  color: #75869a;
  font-size: 12px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 27px;
  color: #8291a4;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--blue);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.ambient-one {
  width: 260px;
  height: 260px;
  background: rgba(255, 217, 26, .11);
  left: -100px;
  top: 12%;
}

.ambient-two {
  width: 330px;
  height: 330px;
  background: rgba(7, 87, 184, .09);
  right: -130px;
  bottom: 0;
}

footer {
  height: 52px;
  display: grid;
  place-items: center;
  color: #7a8da5;
  font-size: 12px;
}

@keyframes float {
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@media (max-width: 850px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .visual {
    min-height: 390px;
  }

  .content {
    padding: 48px 38px 52px;
  }

  .main-logo {
    width: 330px;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 68px;
    padding: 0 16px;
  }

  .brand img {
    width: 145px;
  }

  .back-link {
    font-size: 12px;
  }

  .login-main {
    padding: 25px 12px 40px;
  }

  .login-card {
    border-radius: 22px;
  }

  .visual {
    min-height: 315px;
  }

  .blue-orb {
    width: 245px;
    height: 245px;
  }

  .main-logo {
    width: 285px;
  }

  .coin-one {
    width: 56px;
    height: 56px;
    right: 7%;
  }

  .coin-two {
    width: 45px;
    height: 45px;
    left: 7%;
  }

  .content {
    padding: 38px 22px 40px;
  }

  h1 {
    font-size: 39px;
  }

  .intro {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
