/* Token diambil dari WISOKTOITB-2026 packages/ui/src/styles/tokens.css (WISOKTO 2026 di Figma). */
:root {
  --teal-500: #02415c;
  --yellow-50: #fcfee3;
  --yellow-100: #fbf3ae;
  /* Warna dasar bawah lukisan latar ("gradient" #EDEEB8 di Figma). */
  --ground: #edeeb8;
  --glow: #fff3b8;
  --title-purple: #2f3373;
  --title-orange: #e75d2b;
  --btn-red: #c7181f;
  --btn-orange: #f6955c;
  --focus: #065c73;
}

@font-face {
  font-family: "Sigokae";
  src: url("/fonts/Sigokae.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Young Serif";
  src: url("/fonts/YoungSerif-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Lateef";
  src: url("/fonts/Lateef-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Lateef";
  src: url("/fonts/Lateef-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  background: var(--ground);
  color: var(--teal-500);
  font-family: "Lateef", "Young Serif", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Latar penuh viewport. Gambar dirender dari raw Figma (1600/2560/3200 px), jadi tidak pernah
   ditarik melebihi resolusi aslinya; sisi bawah menyambung ke warna yellow-100. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  /* Warna langit → kuning dari lukisan latar, tampil selama gambar masih dimuat. */
  background: linear-gradient(to bottom, #9adccd 0%, #c9dbb3 35%, #dde0aa 60%, var(--ground) 100%);
}
.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vh, 32px);
  padding: max(32px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

/* Judul Sigokae diisi "Text Texture" (gradien ungu → oranye) + "Tittle Effect". */
.title {
  margin: 0;
  font-family: "Sigokae", Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 9vw, 104px);
  /* Ruang ekstra untuk ekor huruf "g": background-clip:text hanya mengisi kotak elemen. */
  line-height: 1.25;
  padding: 0.05em 0.15em 0.2em;
  text-align: center;
  color: transparent;
  background: linear-gradient(
    to bottom,
    var(--title-purple) 0%,
    var(--title-purple) 42%,
    var(--title-orange) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.25)) drop-shadow(-2px 1px 0 rgb(195 161 70 / 0.5));
}

/* Panel daun "Frame Login" (345:3636) dengan stroke emas. */
.panel {
  position: relative;
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px) clamp(18px, 4vw, 36px);
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    url("/assets/panel-leaf.webp") center 70% / cover padding-box,
    url("/assets/stroke-gold.webp") center / cover border-box;
  box-shadow:
    0 4px 20px rgb(0 0 0 / 0.15),
    0 0 3px rgb(0 0 0 / 0.1);
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px var(--glow)) drop-shadow(0 0 5px var(--glow));
}
.brand__logo {
  width: clamp(84px, 18vw, 132px);
  height: auto;
}
.brand__logotype {
  width: clamp(200px, 48vw, 300px);
  height: auto;
  margin-left: -4px;
}

.lead {
  margin: 0;
  max-width: 420px;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.3;
}
.sub {
  margin: 0;
  max-width: 400px;
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 500;
  line-height: 1.2;
}

.socials {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 3vw, 24px);
  width: 100%;
  max-width: 440px;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--teal-500);
  text-decoration: none;
  border-radius: 12px;
}
.social:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* Button/Primary footer (325:9344): gradien merah-oranye + tekstur 40% + stroke emas 2px. */
.social__button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 10px;
  background:
    linear-gradient(to bottom, var(--btn-red), var(--btn-orange)) padding-box,
    url("/assets/stroke-gold.webp") center / cover border-box;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.social__button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background: url("/assets/button-texture.webp") 12.3% 60.02% / 395.86% 1070.62% no-repeat;
}
.social__button img {
  display: block;
  width: 20px;
  height: 20px;
}
.social:hover .social__button {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.social__handle {
  font-size: clamp(14px, 2.4vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .social__button {
    transition: none;
  }
  .social:hover .social__button {
    transform: none;
  }
}
