/* Styles used only by 404.html. Shared header, footer and buttons remain in portal.css. */

.error-page {
  min-height: 100vh;
  background: #f4f8f6;
}

.error-main {
  overflow: hidden;
}

.error-section {
  position: relative;
  padding: 62px 0 72px;
  background:
    radial-gradient(circle at 10% 12%, rgba(45, 212, 191, 0.12), transparent 27%),
    radial-gradient(circle at 90% 30%, rgba(15, 118, 110, 0.12), transparent 30%),
    #f4f8f6;
}

.error-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 68px);
  background: #fff;
  border: 1px solid #dfeae5;
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(7, 73, 60, 0.11);
}

.error-code {
  margin-bottom: 4px;
  color: var(--green-700);
  font-size: clamp(4.6rem, 11vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.error-card h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 850;
}

.error-lead {
  max-width: 570px;
  margin: 0;
  color: #5e6d66;
  font-size: 1.08rem;
  line-height: 1.75;
}

.error-visual {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: linear-gradient(145deg, #e5faf3, #e6f1f5);
  border: 1px solid #d4eee5;
  border-radius: 50%;
}

.error-phone {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 44%;
  height: 70%;
  padding: 6%;
  background: #063f3a;
  border: 5px solid #102c2a;
  border-radius: 30px;
  box-shadow: 0 24px 34px rgba(7, 73, 60, 0.22);
  transform: translateX(-50%) rotate(7deg);
}

.error-phone-speaker {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 32%;
  height: 3%;
  background: #143c38;
  border-radius: 999px;
  transform: translateX(-50%);
}

.error-phone-screen {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-items: center;
  color: var(--green-700);
  background: linear-gradient(160deg, #fff, #e8f8f3);
  border-radius: 21px;
}

.error-link-icon {
  display: grid;
  width: 72px;
  height: 72px;
  background: #dff6ee;
  border-radius: 22px;
  place-items: center;
  font-size: 2.6rem;
}

.error-link-break {
  width: 48%;
  height: 4px;
  margin: 15px 0;
  background: repeating-linear-gradient(90deg, var(--green-500) 0 9px, transparent 9px 15px);
  transform: rotate(-8deg);
}

.error-alert {
  color: #f59e0b;
  font-size: 1.8rem;
}

.error-shield {
  position: absolute;
  right: 12%;
  bottom: 15%;
  display: grid;
  width: 78px;
  height: 78px;
  color: #fff;
  background: linear-gradient(145deg, #2dd4bf, var(--green-700));
  border: 7px solid #fff;
  border-radius: 25px;
  box-shadow: 0 16px 28px rgba(7, 73, 60, 0.2);
  place-items: center;
  font-size: 2rem;
  transform: rotate(-8deg);
}

.error-orbit {
  position: absolute;
  border: 2px dashed rgba(15, 118, 110, 0.2);
  border-radius: 50%;
}

.error-orbit-one {
  inset: 9%;
}

.error-orbit-two {
  inset: 22%;
}

.error-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #84cc16;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(7, 73, 60, 0.16);
}

.error-dot-one {
  top: 15%;
  left: 13%;
}

.error-dot-two {
  top: 32%;
  right: 7%;
  background: #2dd4bf;
}

.error-shortcuts {
  padding-top: 54px;
}

.error-shortcut-card {
  display: flex;
  min-height: 180px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  color: #43514b;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(7, 73, 60, 0.07);
  text-align: center;
  text-decoration: none;
  transition: 0.25s ease;
}

.error-shortcut-card:hover {
  color: var(--green-900);
  border-color: #9ad9c0;
  box-shadow: 0 16px 34px rgba(7, 73, 60, 0.12);
  transform: translateY(-5px);
}

.error-shortcut-card > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
  color: #fff;
  background: linear-gradient(145deg, #2dd4bf, var(--green-700));
  border-radius: 14px;
  place-items: center;
  font-size: 1.25rem;
}

.error-shortcut-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.error-shortcut-card small {
  margin-top: 5px;
  color: #75827c;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .error-section {
    padding-top: 38px;
  }

  .error-visual {
    width: min(82vw, 390px);
  }
}

@media (max-width: 575.98px) {
  .error-section {
    padding: 24px 0 48px;
  }

  .error-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .error-code {
    font-size: 5rem;
  }

  .error-card h1 {
    font-size: 2rem;
  }

  .error-lead {
    font-size: 1rem;
  }

  .error-visual {
    width: min(100%, 315px);
  }

  .error-phone {
    border-width: 4px;
    border-radius: 24px;
  }

  .error-shield {
    width: 62px;
    height: 62px;
    border-width: 5px;
    border-radius: 20px;
    font-size: 1.55rem;
  }

  .error-shortcuts {
    padding-top: 40px;
  }

  .error-shortcut-card {
    min-height: 150px;
  }
}
