:root {
  --navy: #071f42;
  --blue: #075d9f;
  --bright-blue: #1687c9;
  --gold: #d99c18;
  --light-blue: #eef7fc;
  --muted: #6c7889;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Cairo", sans-serif;
  background: #eaf4fb;
  color: var(--navy);
}

a {
  color: inherit;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 20px 150px;
  background:
    radial-gradient(
      circle at 50% 26%,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.85) 25%,
      rgba(226, 239, 249, 0.75) 65%,
      rgba(190, 215, 235, 0.9) 100%
    );
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.25;
  background-image:
    linear-gradient(115deg, transparent 0 48%, #b8cede 48.2% 48.4%, transparent 48.6%),
    linear-gradient(35deg, transparent 0 50%, #c8d9e8 50.2% 50.35%, transparent 50.5%);
  background-size: 430px 430px;
}

.background-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background:
    radial-gradient(circle at 8% 10%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 18% 17%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 92% 11%, #fff 0 2px, transparent 3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 45%);
}

.content {
  position: relative;
  z-index: 5;
  width: min(100%, 760px);
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.logo {
  position: relative;
  width: 120px;
  height: 92px;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.gear {
  font-size: 83px;
  line-height: 1;
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.12));
}

.computer {
  position: absolute;
  top: 29px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 4px solid #9c6610;
  border-radius: 6px;
  color: #16649b;
  font-size: 29px;
  background: linear-gradient(145deg, #e8f5fc, #176797);
  box-shadow: 0 5px 0 #774c0c;
}

.ministry-name {
  margin-top: -5px;
  font-size: 14px;
  font-weight: 700;
  color: #15233a;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -1px;
}

.hero h2 {
  margin-top: 5px;
  color: var(--blue);
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  font-weight: 700;
}

.redirect-message {
  margin-top: 35px;
  color: #172943;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
}

.redirect-message strong {
  color: var(--blue);
}

.login-text {
  margin-top: 8px;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
}

.login-text a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
}

.countdown-wrapper {
  position: relative;
  width: 166px;
  height: 166px;
  margin: 27px auto 13px;
}

.countdown-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-background,
.ring-progress {
  fill: none;
  stroke-width: 9;
}

.ring-background {
  stroke: #cbd3df;
}

.ring-progress {
  stroke: var(--bright-blue);
  stroke-linecap: round;
  stroke-dasharray: 408.4;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.countdown-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.countdown-number strong {
  font-size: 4rem;
  font-weight: 700;
}

.countdown-number span {
  margin-top: 2px;
  font-size: 1.15rem;
  font-weight: 600;
}

.mail-button {
  display: inline-block;
  min-width: min(92%, 280px);
  padding: 8px 20px;
  border-radius: 13px;
  background: linear-gradient(135deg, #075fa8, #075190);
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(5, 79, 145, 0.25);
  transition: 0.25s ease;
}

.mail-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #0876c9, #06467e);
  box-shadow: 0 12px 25px rgba(5, 79, 145, 0.35);
}

.divider {
  display: flex;
  align-items: center;
  gap: 17px;
  width: min(100%, 450px);
  margin: 28px auto 11px;
}

.divider span {
  flex: 1;
  height: 1px;
  background: #9db1c8;
}

.graduation-icon {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
  transform: rotate(45deg);
}

.contact p {
  color: #24354f;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  font-weight: 600;
}

.contact a {
  display: inline-block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.decoration {
  position: absolute;
  z-index: 1;
  opacity: 0.38;
  pointer-events: none;
}

.building {
  bottom: 205px;
  width: 220px;
  height: 260px;
  border-top: 10px solid #f8fbfd;
  border-left: 11px solid #f8fbfd;
  border-right: 11px solid #f8fbfd;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0 31px,
      #f8fbfd 32px 42px,
      transparent 43px 72px
    );
  filter: drop-shadow(0 0 2px #c5d7e6);
}

.building::before {
  content: "";
  position: absolute;
  left: -45px;
  right: -45px;
  bottom: -22px;
  height: 20px;
  background: #f8fbfd;
  transform: skewX(-35deg);
}

.building-left {
  left: -50px;
  transform: perspective(500px) rotateY(10deg);
}

.building-right {
  right: -100px;
  bottom: 265px;
  width: 180px;
  height: 210px;
  opacity: 0.18;
  transform: perspective(500px) rotateY(-10deg);
}

.books {
  position: absolute;
  z-index: 3;
  bottom: 33px;
  width: 205px;
  height: 170px;
  pointer-events: none;
}

.books-left {
  left: -15px;
  transform: rotate(-4deg);
}

.books-right {
  right: 18px;
  bottom: 38px;
  transform: rotate(3deg);
}

.book {
  position: absolute;
  left: 5px;
  width: 190px;
  height: 33px;
  border-radius: 5px 12px 6px 4px;
  border-bottom: 5px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 6px rgba(1, 21, 45, 0.28);
}

.book-one {
  bottom: 0;
  background: #dce6ef;
}

.book-two {
  bottom: 28px;
  width: 177px;
  background: #152b49;
}

.book-three {
  bottom: 56px;
  width: 165px;
  background: #f3f5f3;
}

.cap {
  position: absolute;
  z-index: 4;
  bottom: 85px;
  left: 35px;
  font-size: 85px;
  filter: drop-shadow(0 7px 5px rgba(0, 0, 0, 0.25));
}

.books-right .cap {
  bottom: 80px;
  left: 18px;
  font-size: 90px;
}

.diploma {
  position: absolute;
  right: 12px;
  bottom: -25px;
  z-index: 5;
  font-size: 75px;
  transform: rotate(-20deg);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}

.footer-wave {
  position: absolute;
  z-index: 2;
  bottom: -95px;
  left: -5%;
  width: 110%;
  height: 180px;
  border-radius: 50% 50% 0 0;
  border-top: 5px solid var(--gold);
  background: #063d72;
  transform: rotate(-2deg);
}

.footer-wave::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 100%;
  height: 14px;
  background: white;
  border-top: 2px solid #9ebbd4;
}

@media (max-width: 700px) {
  .page {
    align-items: flex-start;
    padding-top: 25px;
    padding-bottom: 115px;
  }

  .content {
    width: 100%;
  }

  .hero h1 {
    letter-spacing: -0.5px;
  }

  .hero h2 {
    margin-top: 4px;
  }

  .redirect-message {
    margin-top: 25px;
  }

  .building {
    opacity: 0.18;
    transform: scale(0.75);
    transform-origin: bottom;
  }

  .building-left {
    left: -95px;
  }

  .building-right {
    right: -130px;
  }

  .books {
    transform: scale(0.58);
    transform-origin: bottom;
  }

  .books-left {
    left: -63px;
    bottom: 4px;
  }

  .books-right {
    right: -50px;
    bottom: 5px;
  }

  .footer-wave {
    bottom: -120px;
    height: 160px;
  }
}

@media (max-width: 420px) {
  .logo {
    transform: scale(0.85);
    margin-bottom: -8px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.25rem;
  }

  .countdown-wrapper {
    transform: scale(0.9);
    margin-top: 20px;
    margin-bottom: 4px;
  }

  .mail-button {
    font-size: 0.9rem;
  }

  .contact p {
    font-size: 0.78rem;
  }

  .contact a {
    font-size: 1rem;
  }
}