html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f4f7f4;
  color: #172019;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: pageFadeIn 360ms ease-out both;
  }

  body.page-exiting {
    opacity: 0;
    transition: opacity 220ms ease-in;
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-brand {
  font-weight: 700;
}

.nav-logout-form {
  margin: 0;
}

.landing-hero {
  align-items: center;
  background-image: url("/images/minecraft-server-hero.png");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: flex;
  height: 58vh;
  margin-left: calc(50% - 50vw);
  margin-top: -1rem;
  min-height: 420px;
  overflow: hidden;
  padding: 4rem max(1rem, calc((100vw - 1140px) / 2));
  position: relative;
  width: 100vw;
}

.landing-hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 13, 10, 0.84) 0%, rgba(8, 13, 10, 0.62) 42%, rgba(8, 13, 10, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 13, 10, 0.18), rgba(8, 13, 10, 0.18));
  inset: 0;
  position: absolute;
}

.landing-hero-content {
  max-width: 620px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

.landing-hero .eyebrow {
  color: #a8e16d;
}

.landing-hero h1 {
  font-size: 3.75rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 1rem;
}

.landing-hero .lead {
  color: #edf7ec;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.landing-section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
  min-width: 0;
}

.section-heading h2,
.why-copy h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.hosting-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hosting-card {
  background: #ffffff;
  border: 1px solid #d9e1da;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 25, 0.06);
  min-height: 190px;
  padding: 1.25rem;
}

.hosting-card h3 {
  color: #172019;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}

.hosting-card p {
  color: #4b5b50;
  margin: 0;
}

.why-section {
  background: #ffffff;
  border-top: 1px solid #d9e1da;
  margin-left: calc(50% - 50vw);
  padding-left: max(1rem, calc((100vw - 1140px) / 2));
  padding-right: max(1rem, calc((100vw - 1140px) / 2));
  width: 100vw;
}

.why-layout {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  max-width: 1140px;
}

.why-copy {
  max-width: 780px;
}

.why-copy p:not(.eyebrow) {
  color: #36443a;
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.personal-photo {
  margin: 0;
}

.personal-photo img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 25, 0.16);
  display: block;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.personal-photo figcaption {
  color: #516155;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.signup-shell {
  background-image:
    linear-gradient(90deg, rgba(8, 13, 10, 0.86) 0%, rgba(8, 13, 10, 0.58) 44%, rgba(8, 13, 10, 0.38) 100%),
    url("/images/minecraft-server-hero.png");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  margin-left: calc(50% - 50vw);
  margin-top: -1rem;
  min-height: calc(100vh - 117px);
  overflow: hidden;
  padding: 4rem max(1rem, calc((100vw - 1140px) / 2));
  width: 100vw;
}

.signup-copy {
  border-left: 6px solid #a8e16d;
  min-width: 0;
  padding-left: 1.5rem;
}

.signup-copy .eyebrow {
  color: #a8e16d;
}

.eyebrow {
  color: #2f7d32;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.signup-copy h1,
.admin-panel h1,
.admin-test h1 {
  font-weight: 800;
  letter-spacing: 0;
}

.signup-copy h1 {
  color: #ffffff;
}

.signup-copy .lead {
  color: #edf7ec;
  max-width: 520px;
}

.signup-panel,
.admin-panel {
  background: #ffffff;
  border: 1px solid #d9e1da;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 25, 0.08);
  padding: 1.5rem;
}

.signup-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: #172019;
  min-width: 0;
}

.form-label {
  font-weight: 650;
}

.form-control {
  border-color: #cbd7cc;
}

.btn-primary {
  background: #2f7d32;
  border-color: #2f7d32;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #256728;
  border-color: #256728;
}

.validation-summary ul {
  margin-bottom: 1rem;
}

.success-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.success-panel dl {
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: max-content 1fr;
  margin: 0;
}

.success-panel dt {
  color: #516155;
}

.success-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.success-note {
  background: #eef7ee;
  border: 1px solid #c8dfc9;
  border-radius: 8px;
  color: #27472a;
  font-weight: 650;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

.admin-shell {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  padding: 2rem 0;
}

.admin-panel {
  max-width: 420px;
  width: 100%;
}

.admin-test {
  padding: 2rem 0;
}

.admin-test-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.response-meta {
  background: #ffffff;
  border: 1px solid #d9e1da;
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.response-body {
  background: #101612;
  border-radius: 8px;
  color: #e7f4e8;
  max-height: 520px;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

@media (max-width: 767.98px) {
  .landing-hero {
    background-position: center right;
    height: 56vh;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    min-height: 390px;
    padding-bottom: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2.5rem;
    width: auto;
  }

  .landing-hero h1 {
    font-size: 2.25rem;
    max-width: 10ch;
  }

  .landing-hero .lead {
    font-size: 1.05rem;
  }

  .landing-section {
    padding: 2.5rem 0;
  }

  .section-heading h2,
  .why-copy h2 {
    font-size: 1.55rem;
  }

  .hosting-grid {
    grid-template-columns: 1fr;
  }

  .hosting-card {
    min-height: auto;
  }

  .why-section {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    width: auto;
  }

  .why-layout {
    grid-template-columns: 1fr;
  }

  .personal-photo {
    max-width: 28rem;
  }

  .signup-shell {
    box-sizing: border-box;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    min-height: auto;
    padding: 2rem 1rem;
    width: 100vw;
  }

  .signup-copy {
    border-left: 0;
    border-top: 6px solid #a8e16d;
    padding-left: 0;
    padding-top: 1rem;
  }

  .signup-copy,
  .signup-panel {
    max-width: 36rem;
    width: 100%;
  }

  .signup-copy h1 {
    font-size: 2.25rem;
    overflow-wrap: break-word;
  }

  .admin-test-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .landing-hero-content,
  .section-heading,
  .hosting-grid,
  .why-layout,
  .why-copy {
    max-width: 22.5rem;
    width: 100%;
  }

  .landing-hero .lead,
  .signup-copy .lead,
  .hosting-card p,
  .why-copy p:not(.eyebrow) {
    overflow-wrap: break-word;
  }

  .signup-copy,
  .signup-panel {
    max-width: min(22.5rem, calc(100vw - 2rem));
  }

  .signup-copy h1 {
    font-size: 2rem;
  }
}
