@font-face {
  font-family: "Noto Sans Lao";
  src: url("/fonts/NotoSansLao.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

body.auth-document { margin: 0; background: #f3f2eb; }

.auth-studio,
.auth-studio * { box-sizing: border-box; }

.auth-studio {
  --auth-ink: #153e34;
  --auth-muted: #56695d;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(26px, 5vw, 80px);
  color: var(--auth-ink);
  font: 400 16px/1.65 "Noto Sans Lao", sans-serif;
  background:
    radial-gradient(ellipse at 8% 0%, #e0e7dc, transparent 50%),
    radial-gradient(ellipse at 97% 100%, #e8e2d4, transparent 45%),
    #f4f3ed;
}
.auth-suite {
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  min-height: clamp(528px, 72vh, 760px);
  overflow: hidden;
  border-radius: 26px;
  background: #fffefa;
  box-shadow: 0 20px 66px -35px #253a2f57, 0 0 0 1px #41533d15;
}
.auth-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff8e6;
  background: #284a3d;
}
.auth-art-photo,
.auth-art-light,
.auth-art-frame { position: absolute; pointer-events: none; }

.auth-art-photo {
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, #163e3021 10%, #0b261e08 36%, #0b271e91 72%, #0b291ff5 100%),
    url("/images/invitation-hero.webp") 73% 48% / cover no-repeat;
  animation: soen-photo-in 1.6s cubic-bezier(.12,.6,.24,1) both;
}
.auth-art-light {
  z-index: -1;
  inset: -25%;
  opacity: 0;
  background: linear-gradient(118deg, transparent 35%, #fff9d039 49%, transparent 62%);
  animation: soen-light-pass 2.2s ease-out .16s both;
}
.auth-art-frame {
  inset: clamp(12px, 2vw, 26px);
  border: 1px solid #fff4d15c;
  border-radius: 12px;
}
.auth-art-name {
  position: absolute;
  inset: auto clamp(34px, 5.2vw, 78px) clamp(42px, 6vw, 90px);
  display: grid;
  gap: 2px;
  width: fit-content;
  text-shadow: 0 2px 18px #132e258c;
  animation: soen-text-in .85s ease-out both;
}
.auth-art-name::before {
  content: "";
  width: 42px;
  height: 1px;
  background: #ebd6a6;
  margin-bottom: 10px;
}
.auth-art-name strong {
  font-size: clamp(48px, 6.7vw, 100px);
  line-height: 1.35;
  letter-spacing: -.04em;
  font-weight: 620;
}
.auth-art-name span { font-size: clamp(14px, 1.4vw, 19px); font-weight: 450; }
.auth-pane {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 5vw, 76px) clamp(34px, 4.5vw, 70px);
}
.auth-panel {
  width: min(100%, 366px);
  animation: soen-text-in .72s cubic-bezier(.16,.64,.24,1) both;
}
.auth-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 27px;
}
.auth-panel h1 {
  margin: 0 0 5px;
  font-size: clamp(28px, 3vw, 41px);
  line-height: 1.55;
  color: var(--auth-ink);
  font-weight: 670;
  letter-spacing: -.035em;
}
.auth-panel .auth-description {
  color: var(--auth-muted);
  font-size: 14px;
  margin: 0 0 30px;
  line-height: 1.75;
}
.auth-login-form {
  display: grid;
  gap: 18px;
  margin: 0;
}
.auth-field { display: grid; gap: 6px; }
.auth-field label {
  color: #374d43;
  font-size: 13px;
  font-weight: 620;
}
.auth-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #b4c2b7;
  border-radius: 9px;
  background: #fffffc;
  color: #203c30;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.auth-action,
.auth-cancel {
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.auth-panel .auth-action {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #20513e;
  border-radius: 9px;
  background: linear-gradient(112deg, #285640, #173e32);
  color: #fffdf2;
  padding: 11px 15px;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.55;
  box-shadow: 0 6px 13px -9px #153c30b0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.auth-login-form .auth-action { margin-top: 3px; }
.auth-arrow {
  display: inline-block;
  position: relative;
  width: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease;
}
.auth-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 7px;
  height: 7px;
  border-top: 1.6px solid;
  border-right: 1.6px solid;
  transform: translateY(-50%) rotate(45deg);
}
.auth-panel .auth-action:active { transform: translateY(1px); }
@media (hover: hover) {
  .auth-panel .auth-action:hover { box-shadow: 0 9px 18px -8px #153c3073; }
  .auth-action:hover .auth-arrow { transform: translateX(3px); }
}
.auth-studio :focus-visible { outline: 3px solid #947639; outline-offset: 3px; }
.auth-panel .auth-alert {
  margin: 0 0 18px;
  border-left: 3px solid #a1513e;
  border-radius: 4px;
  padding: 10px 14px;
  background: #fff0e9;
  color: #853e30;
  font-size: 14px;
}
.auth-cancel {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  color: #395a44;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes soen-photo-in { from { transform: scale(1.035); } to { transform: scale(1); } }
@keyframes soen-light-pass {
  0% { transform: translateX(-65%); opacity: 0; }
  30% { opacity: .76; }
  100% { transform: translateX(70%); opacity: 0; }
}
@keyframes soen-text-in { from { opacity: .24; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .auth-studio { padding: 18px; }
  .auth-suite { width: min(480px, 100%); min-height: 0; grid-template-columns: minmax(0,1fr); border-radius: 19px; }
  .auth-art { min-height: clamp(126px, 21svh, 170px); }
  .auth-art-frame { inset: 9px; border-radius: 8px; }
  .auth-art-photo { background-position: center, 74% 50%; }
  .auth-art-name { inset: auto 27px 21px; gap: 0; }
  .auth-art-name::before { width: 29px; margin-bottom: 4px; }
  .auth-art-name strong { font-size: 31px; }
  .auth-art-name span { font-size: 12px; }
  .auth-pane { padding: 28px clamp(22px,5.8vw,38px) 32px; }
  .auth-logo { height: 48px; margin-bottom: 15px; }
  .auth-panel .auth-description { margin-bottom: 21px; }
  .auth-login-form { gap: 14px; }
}
@media (max-width: 360px) {
  .auth-studio { padding: 10px; }
  .auth-pane { padding: 22px 17px 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-studio *, .auth-studio *::before, .auth-studio *::after {
    animation: none !important;
    transition: none !important;
  }
}
