:root {
  --home-primary: #0071bd;
  --home-primary-dark: #005c99;
  --home-text: #13233f;
  --home-muted: #62738a;
  --home-border: #d9e4ef;
  --home-surface: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--home-text);
  background:
    linear-gradient(
      90deg,
      rgba(247, 251, 255, 0.9) 0%,
      rgba(247, 251, 255, 0.62) 48%,
      rgba(247, 251, 255, 0.28) 100%
    ),
    url("../images/background.png") center / cover no-repeat;
}

.home-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  row-gap: 1.1rem;
}

.home-shell {
  width: min(420px, 100%);
  justify-self: center;
}

.content-box {
  width: 100%;
  min-height: 420px;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid rgba(217, 228, 239, 0.92);
  border-radius: 18px;
  background: var(--home-surface);
  box-shadow: 0 24px 70px rgba(38, 73, 112, 0.16);
  backdrop-filter: blur(12px);
  text-align: center;
}

.content-box > .home-intro,
.content-box > .missing-address {
  display: flex;
  flex-direction: column;
}

.home-card__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f0f7fc;
  box-shadow: inset 0 0 0 1px rgba(0, 113, 189, 0.1);
}

.home-card__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.content-box h2 {
  margin: 0;
  color: var(--home-text);
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 800;
}

.content-box p {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--home-text);
}

.home-intro {
  margin-top: 1rem;
}

.home-intro__lead {
  font-weight: 800;
}

.home-intro strong {
  color: var(--home-primary-dark);
  font-weight: 800;
}

.home-intro__text {
  max-width: 340px;
  margin-left: auto !important;
  margin-right: auto !important;
  color: var(--home-muted);
}

.home-intro__summary {
  max-width: 340px;
  margin: 1rem auto 0 !important;
  font-weight: 800;
}

.missing-address {
  margin-top: 1.15rem;
}

.missing-address__lead {
  max-width: 330px;
  margin: 0 auto;
  color: var(--home-text);
  font-weight: 500;
}

.missing-address__lead strong {
  font-weight: 800;
}

.missing-address__items {
  margin-top: 1rem;
  display: grid;
  gap: 0;
  text-align: left;
}

.missing-address__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(217, 228, 239, 0.75);
}

.missing-address__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef6ff;
}

.missing-address__icon img {
  width: 18px;
  height: 18px;
}

.missing-address__item p {
  margin: 0;
  color: var(--home-text);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
}

.missing-address__item span:not(.missing-address__icon) {
  display: block;
  color: var(--home-muted);
  font-weight: 500;
}

.missing-address__item strong {
  display: inline-block;
  max-width: 100%;
  color: var(--home-primary-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.btn-login {
  width: min(342px, 100%);
  min-height: 48px;
  margin-top: 1.3rem;
  padding: 0.78rem 1.15rem;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--home-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(0, 113, 189, 0.13);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
  background: var(--home-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(0, 113, 189, 0.22);
}

.btn-login:focus-visible {
  outline: 2px solid rgba(0, 113, 189, 0.35);
  outline-offset: 2px;
}

.btn-login__icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.home-footer {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.home-corner-logo {
  position: static;
  width: min(118px, 28vw);
  opacity: 0.95;
  display: block;
  line-height: 0;
  transition: opacity 0.15s ease;
  flex: 0 0 auto;
}

.home-corner-logo:hover {
  opacity: 1;
}

.home-corner-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.home-legal {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--home-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  min-width: 0;
  flex: 1 1 auto;
}

.home-legal span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-legal__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  filter: invert(67%) sepia(13%) saturate(568%) hue-rotate(177deg)
    brightness(91%) contrast(89%);
}

.home-legal a {
  color: var(--home-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.home-legal a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .home-page {
    align-content: start;
    padding: clamp(1.4rem, 5vh, 2.4rem) 1rem 2rem;
  }

  .content-box {
    padding: 1.25rem;
    border-radius: 16px;
    min-height: auto;
  }

  .home-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.9rem;
    border-radius: 14px;
  }

  .home-card__icon img {
    width: 36px;
    height: 36px;
  }

  .content-box h2 {
    font-size: 1.45rem;
  }

  .missing-address__item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.85rem 0;
  }

  .home-footer {
    position: static;
    width: 100%;
    margin: 1.1rem auto 0;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.7rem;
  }

  .home-legal {
    justify-content: center;
    flex: 1 1 100%;
    text-align: center;
    font-size: 0.78rem;
  }

  .home-corner-logo {
    width: 112px;
    margin: 0;
    transform: none;
  }
}

@media (max-width: 1280px), (max-height: 900px) {
  .home-page {
    min-height: 100svh;
    align-content: start;
    align-items: start;
    padding: 1.5rem clamp(1rem, 4vw, 3rem) 2rem;
  }

  .home-shell {
    margin-top: 0;
  }
}
