:root {
  color: #172d24;
  font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

body {
  margin: 0;
  background: #fff;
}

.landing-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 6px;
  box-sizing: border-box;
}

.hero {
  display: flex;
  position: relative;
  min-height: 720px;
  flex: 1;
  align-items: center;
  flex-direction: column;
  padding: clamp(64px, 9vw, 104px) 24px 80px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: -8%;
  content: "";
  background: linear-gradient(rgb(255 255 255 / 7%), rgb(255 255 255 / 7%)), url("../images/TransitionBG.png") center / cover no-repeat;
  animation: background-drift 18s ease-in-out infinite alternate;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.identity {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: #172d24;
  text-align: center;
}

.logo {
  position: relative;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  margin-top: -22px;
}

.logo-back,
.logo-front {
  position: absolute;
  display: block;
  object-fit: contain;
}

.logo-back {
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo-front {
  top: 17%;
  left: 17%;
  width: 66%;
  height: 66%;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: .04em;
  -webkit-text-stroke: .35px currentColor;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  margin-top: 22px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.system-list {
  display: grid;
  width: min(100%, 726px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 18px;
}

.system-link {
  display: grid;
  min-height: 188px;
  place-items: center;
  padding: 24px;
  border: 1px solid rgb(104 104 104 / 48%);
  box-shadow: 0 2px 5px rgb(0 0 0 / 14%);
  color: #182c2a;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 900;
  -webkit-text-stroke: .25px currentColor;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease;
}

.system-link:first-child {
  background: rgb(113 203 222 / 62%);
}

.system-link:last-child {
  background: rgb(255 213 130 / 66%);
}

.system-link:hover,
.system-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgb(0 0 0 / 18%);
  outline: 3px solid rgb(0 91 173 / 55%);
  outline-offset: 3px;
}

.sso-description {
  align-self: flex-start;
  margin: 12px 0 0 12px;
  color: #001eff;
  font-size: 1.125rem;
  font-weight: 700;
}

@keyframes background-drift {
  from {
    transform: scale(1.05) translate3d(-1%, -1%, 0);
  }

  to {
    transform: scale(1.12) translate3d(1%, 1%, 0);
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: calc(100vh - 6px);
    padding-top: 48px;
  }

  .identity {
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    margin-top: -12px;
  }

  .system-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .system-link {
    min-height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .system-link {
    animation: none;
    transition: none;
  }
}
