body:has(.magellan-signin),
body:has(.magellan-home) {
  background: #000038;
}

body:has(.magellan-signin) #navbar,
body:has(.magellan-signin) .page-footer,
body:has(.magellan-home) #navbar,
body:has(.magellan-home) .page-footer {
  display: none;
}

body:has(.magellan-signin) .full.height,
body:has(.magellan-home) .full.height {
  min-height: 100vh;
  background: #000038;
}

.magellan-signin,
.magellan-home {
  min-height: 100vh;
  margin: 0;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(37, 67, 185, 0.55), transparent 70%),
    #000038;
}

.magellan-signin .ui.page.grid,
.magellan-signin .column {
  width: min(440px, 100%) !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.magellan-home .magellan-card {
  width: min(560px, 100%);
}

.magellan-points {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.magellan-points li {
  padding-left: 14px;
  border-left: 3px solid #2543b9;
}

.magellan-points strong {
  display: block;
  color: #000038;
  font-size: 14px;
}

.magellan-points span {
  display: block;
  margin-top: 2px;
  color: #55646f;
  font-size: 14px;
  line-height: 1.45;
}

.magellan-card {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 24, 0.45);
}

.magellan-logo {
  display: block;
  width: min(280px, 78%);
  height: auto;
  margin: 0 auto 22px;
}

.magellan-product {
  margin: -6px 0 4px;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #000082;
}

.magellan-title {
  margin: 6px 0 22px;
  text-align: center;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 650;
  color: #000038;
}

.magellan-home .magellan-title {
  margin-bottom: 8px;
}

.magellan-lead {
  margin: 0 0 22px;
  text-align: center;
  color: #55646f;
  font-size: 15px;
  line-height: 1.45;
}

.magellan-home-local {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: #2543b9;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.magellan-home-local:hover,
.magellan-home-local:focus {
  color: #000082;
}

.magellan-sso {
  margin: 0;
}

.magellan-sso-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #000082 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: none;
}

.magellan-sso-btn:hover,
.magellan-sso-btn:focus {
  background: #2543b9 !important;
  color: #ffffff !important;
}

.magellan-sso-btn img {
  width: 18px;
  height: 18px;
  padding: 2px;
  background: #ffffff;
  border-radius: 3px;
  flex: 0 0 auto;
}

.magellan-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: #8686a6;
  font-size: 13px;
}

.magellan-or::before,
.magellan-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e7f5;
}

.magellan-local-label {
  margin: 0 0 12px;
  color: #55646f;
  font-size: 13px;
  font-weight: 650;
}

.magellan-signin .ui.form .field > label,
.magellan-signin .ui.form .tw-flex label {
  color: #000038;
  font-weight: 600;
}

.magellan-signin .ui.form input[type="text"],
.magellan-signin .ui.form input[type="password"] {
  border: 1px solid #d7dbed;
  border-radius: 8px;
  background: #f7f8ff;
}

.magellan-signin .ui.form a {
  color: #2543b9;
}

.magellan-local-submit {
  min-height: 44px;
  border-radius: 10px !important;
  background: transparent !important;
  color: #000038 !important;
  border: 1px solid #c5c9e0 !important;
  box-shadow: none !important;
  font-weight: 650 !important;
}

.magellan-local-submit:hover,
.magellan-local-submit:focus {
  background: #eef1ff !important;
  color: #000038 !important;
}

.magellan-extra {
  margin-top: 8px;
  text-align: center;
}

.magellan-extra .signin-passkey {
  color: #55646f;
  cursor: pointer;
  font-size: 13px;
}

body:has(.page-content.home) a[href="/explore/repos"] {
  display: none;
}

@media (max-width: 520px) {
  .magellan-card {
    padding: 28px 18px 20px;
  }

  .magellan-title {
    font-size: 24px;
  }
}
