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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
}

.page {
  display: flex;
  min-height: 100vh;
}

/* ─── Left hero ─── */
.hero {
  width: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-astronaut {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 520px;
  object-fit: contain;
  z-index: 1;
}

.hero-title {
  position: absolute;
  top: 48px;
  left: 48px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  z-index: 2;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ─── Right panel ─── */
.panel {
  width: 50%;
  background: #0c0c0c;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #1e1e1e;
}

.panel-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.close-btn {
  position: absolute;
  right: 24px;
  background: none;
  border: none;
  color: #787b86;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
}

.close-btn:hover {
  color: #fff;
}

/* ─── Panel body ─── */
.panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.signup-iframe {
  width: 100%;
  max-width: 427px;
  height: 450px;
  border: none;
  border-radius: 8px;
}

/* Buttons */
.btn {
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid;
}

.btn-google {
  background: #fff;
  color: #131722;
  border-color: #fff;
}

.btn-google:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
}

.btn-email {
  background: transparent;
  color: #fff;
  border-color: #363a45;
}

.btn-email:hover {
  border-color: #50535e;
}

/* More options link */
.more-options {
  margin-top: 16px;
}

.link-btn {
  background: none;
  border: none;
  color: #2962ff;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 280px;
  margin: 20px 0;
  gap: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2e39;
}

.divider span {
  font-size: 13px;
  color: #787b86;
}

/* ─── Footer ─── */
.panel-footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: #787b86;
  border-top: 1px solid #1e1e1e;
}

.sign-in-link {
  color: #2962ff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.sign-in-link:hover {
  text-decoration: underline;
}

/* ─── Responsive ─── */
@media (max-width: 840px) {
  .page {
    flex-direction: column;
  }

  .hero {
    min-height: 280px;
  }

  .panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid #1e1e1e;
  }
}
