body.nasa-auth-page {
  --nasa-auth-red: #b3262d;
  --nasa-auth-red-deep: #7f1d27;
  --nasa-auth-gold: #e5b642;
  --nasa-auth-ink: #303238;
  --nasa-auth-muted: #686d76;
  min-height: 100vh;
  margin: 0;
  color: var(--nasa-auth-ink);
  background: #f4f4f3;
  font-family: "Segoe UI", Arial, sans-serif;
}

.nasa-auth-page *,
.nasa-auth-page *::before,
.nasa-auth-page *::after {
  box-sizing: border-box;
}

.nasa-auth-page .container-fluid {
  min-height: 100vh;
  padding: 0;
}

.nasa-auth-page .auth-wrapper {
  display: flex;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.nasa-auth-page .auth-left {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 100vh;
  flex: 0 0 38%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5.5rem);
  overflow: hidden;
  background: linear-gradient(145deg, #292b30 0%, #503337 55%, #8e252b 100%);
  color: #fff;
  text-align: left;
}

.nasa-auth-page .auth-left::before,
.nasa-auth-page .auth-left::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.nasa-auth-page .auth-left::before {
  top: -10rem;
  right: -11rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 2.8rem rgba(255, 255, 255, 0.035), 0 0 0 5.6rem rgba(255, 255, 255, 0.025);
}

.nasa-auth-page .auth-left::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--nasa-auth-gold), #f3d782 45%, transparent);
}

.nasa-auth-page .auth-left img {
  width: 84px;
  height: 84px;
  margin: 0 0 1.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(12, 16, 23, 0.25);
}

.nasa-auth-page .auth-left h1 {
  max-width: 420px;
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.nasa-auth-page .auth-left p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.nasa-auth-page .auth-form {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 4.75rem);
  background:
    radial-gradient(ellipse at 100% 0, rgba(229, 182, 66, 0.12), transparent 36%),
    #f7f7f6;
}

.nasa-auth-page .auth-form form {
  width: min(100%, 540px);
  max-width: 540px;
  padding: clamp(1.4rem, 4vw, 2.65rem);
  border: 1px solid #e7e5e2;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(47, 41, 41, 0.1);
}

.nasa-auth-page .auth-form h4 {
  margin-bottom: 1.5rem !important;
  color: var(--nasa-auth-ink);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.nasa-auth-page .auth-form p {
  color: var(--nasa-auth-muted);
}

.nasa-auth-page .auth-form label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #43454b;
  font-size: 0.88rem;
  font-weight: 650;
}

.nasa-auth-page .auth-form .form-control,
.nasa-auth-page .auth-form .form-select {
  min-height: 46px;
  border-color: #d9dadd;
  border-radius: 0.65rem;
  color: var(--nasa-auth-ink);
  background-color: #fff;
  font-size: 0.95rem;
}

.nasa-auth-page .auth-form textarea.form-control {
  min-height: 88px;
}

.nasa-auth-page .auth-form .input-group > .form-control,
.nasa-auth-page .auth-form .input-group > .form-select {
  border-radius: 0.65rem;
}

.nasa-auth-page .auth-form .input-group > .btn {
  border-color: #d9dadd;
  border-radius: 0 0.65rem 0.65rem 0;
}

.nasa-auth-page .auth-form .form-control:focus,
.nasa-auth-page .auth-form .form-select:focus {
  border-color: var(--nasa-auth-red);
  box-shadow: 0 0 0 0.2rem rgba(179, 38, 45, 0.14);
}

.nasa-auth-page .auth-form .btn-primary {
  min-height: 48px;
  border: 0;
  border-radius: 0.7rem;
  background: linear-gradient(110deg, var(--nasa-auth-red-deep), var(--nasa-auth-red) 72%, #c34335);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(179, 38, 45, 0.2);
}

.nasa-auth-page .auth-form .btn-primary:hover {
  background: linear-gradient(110deg, #681821, #9e2029 72%, #ac362e);
  transform: translateY(-1px);
}

.nasa-auth-page .auth-form a {
  color: var(--nasa-auth-red);
  font-weight: 650;
  text-decoration: none;
}

.nasa-auth-page .auth-form a:hover {
  color: var(--nasa-auth-red-deep);
  text-decoration: underline;
}

.nasa-auth-page .auth-form small {
  display: block;
  margin-top: 0.4rem;
  color: var(--nasa-auth-muted) !important;
}

.nasa-auth-page :focus-visible {
  outline: 3px solid rgba(229, 182, 66, 0.85);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .nasa-auth-page .auth-wrapper {
    flex-direction: column;
    overflow: visible;
  }

  .nasa-auth-page .auth-left {
    min-height: 0;
    flex: 0 0 auto;
    align-items: center;
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .nasa-auth-page .auth-left img {
    width: 62px;
    height: 62px;
    margin-bottom: 0.8rem;
  }

  .nasa-auth-page .auth-left h1 {
    font-size: 1.45rem;
  }

  .nasa-auth-page .auth-left p {
    font-size: 0.9rem;
  }

  .nasa-auth-page .auth-form {
    align-items: flex-start;
    padding: 1.25rem 1rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nasa-auth-page *,
  .nasa-auth-page *::before,
  .nasa-auth-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
