/* =========================================================
   Lendingarsíða – rómverskt himnaríki (lykkja fyrir aftan innskráningu)
   ========================================================= */
.landing {
  --sh: 50vh;
  --text: #2f2616; --muted: #7a6a4c; --border: rgba(176, 138, 58, .45);
  --bg: #fffdf7; --card: #fbf8f1; --card-img: none; --opt-bg: #fffdf7;
  --accent: #b8892c; --accent-text: #2a1d05; --bad: #a3352b; --ok: #3f7d4e;
  --btn-bg: linear-gradient(180deg, #fbe9ad 0%, #e2b955 45%, #b5862a 100%);
  --font-head: "Cinzel", "Iowan Old Style", Georgia, serif;
  position: relative; min-height: 100vh; font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
}
@supports (height: 1svh) { .landing { --sh: 50svh; } }

.lp { position: fixed; inset: 0; z-index: 0; overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; pointer-events: none; }
.lp > *, .lp-stage > *, .lp-heaven > * { position: absolute; }

/* Himinn */
.lp-sky { inset: 0; transition: opacity 1.4s ease; }
.lp-sky.night { background: linear-gradient(180deg, #070b22 0%, #141d4d 45%, #2e2f6e 80%, #463d7c 100%); }
.lp-sky.dawn { opacity: 0; background: linear-gradient(180deg, #2b3c8f 0%, #7d74c9 30%, #d79abb 58%, #f6c49a 80%, #ffe2b0 100%); }
.lp-sky.day { opacity: 0; background:
  radial-gradient(ellipse 70% 45% at 50% 24%, #fffdf6 0%, #fff4d6 28%, rgba(255, 240, 205, 0) 62%),
  linear-gradient(180deg, #cfe3ff 0%, #e9f1ff 40%, #fff6e6 75%, #ffeccc 100%); }
.lp.s3 .lp-sky.dawn { opacity: 1; }
.lp.s5 .lp-sky.day { opacity: 1; transition-duration: .9s; }
.lp-stars { inset: 0; opacity: 1; transition: opacity 1.4s;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 14%, #fff, transparent), radial-gradient(1.1px 1.1px at 24% 6%, #fff, transparent),
    radial-gradient(1.9px 1.9px at 41% 19%, #fff, transparent), radial-gradient(1.2px 1.2px at 58% 9%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 77% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 89% 5%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 7% 36%, #fff, transparent), radial-gradient(1.1px 1.1px at 70% 38%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 33% 31%, #fff, transparent), radial-gradient(1px 1px at 52% 3%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 93% 33%, #fff, transparent), radial-gradient(1px 1px at 18% 46%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 63% 27%, #fff, transparent), radial-gradient(1px 1px at 84% 44%, #fff, transparent);
  animation: lpTwinkle 3.2s ease-in-out infinite alternate; }
@keyframes lpTwinkle { to { opacity: .55; } }
.lp.s3 .lp-stars { opacity: 0; }

/* Sviðið (efri hluti skjásins) */
.lp-stage { left: 0; right: 0; top: 0; height: var(--sh); }
.lp-sun { left: 50%; top: 58%; width: 140vmax; height: 140vmax; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.4s;
  background: radial-gradient(circle, rgba(255, 246, 214, .95) 0%, rgba(255, 220, 150, .55) 8%, rgba(255, 200, 140, .18) 22%, rgba(255, 190, 140, 0) 40%); }
.lp.s3 .lp-sun { opacity: .9; }
.lp.s5 .lp-sun { opacity: 0; }

/* Ský */
.lp-cloud { left: var(--x); top: var(--y); width: var(--w); will-change: transform, opacity; }
.lp-cloud svg { width: 100%; display: block; overflow: visible; animation: lpDrift 9s ease-in-out var(--d) infinite alternate; }
@keyframes lpDrift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.lp-cloud.side { opacity: 0; transform: translateX(var(--from)) scale(.92); z-index: 3;
  transition: transform 1.4s cubic-bezier(.2, .8, .2, 1), opacity 1s; }
.lp.s3 .lp-cloud.side { opacity: 1; transform: none; }
.lp.s5 .lp-cloud.side { opacity: 0; transform: translate(var(--rx), var(--ry)) scale(2.6);
  transition: transform 1s cubic-bezier(.6, 0, .9, .5), opacity .9s ease-in; }
.lp-floor { left: 0; right: 0; top: calc(var(--sh) * .62); height: 100%; z-index: 2; }
.lp-floor .lp-cloud { opacity: 0; transform: translateY(30%); transition: transform 1.6s cubic-bezier(.2, .8, .2, 1), opacity 1.2s; }
.lp.s6 .lp-floor .lp-cloud { opacity: 1; transform: none; }

/* Hliðið */
.lp-gate { left: 50%; top: 54%; width: min(66vw, calc(var(--sh) * .74), 330px); aspect-ratio: 320 / 380; z-index: 2;
  transform: translate(-50%, -50%) scale(.55); transform-origin: 50% 62%; opacity: 0;
  transition: transform 1.3s cubic-bezier(.2, .8, .2, 1), opacity 1s; will-change: transform, opacity; }
.lp.s3 .lp-gate { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lp.s5 .lp-gate { opacity: 0; transform: translate(-50%, -50%) scale(7.5);
  transition: transform 1.2s cubic-bezier(.65, 0, .9, .45), opacity .8s .35s ease-in; }
.lp-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-inscr { font: 700 13px "Cinzel", Georgia, serif; letter-spacing: 3px; fill: #8a6524; }
.lp-keyx { font: 900 14px "Cinzel", Georgia, serif; fill: #5a3d0a; }
.lp-glow, .lp-doors { position: absolute; left: 16.9%; right: 16.9%; top: 20.5%; bottom: 1.6%; }
.lp-glow { border-radius: 50% 50% 0 0 / 16% 16% 0 0; opacity: .35;
  background: radial-gradient(ellipse at 50% 50%, #fff 0%, #fffaea 30%, #ffe39a 62%, #f4c45c 88%, #e2a83e 100%);
  transition: opacity 1s, box-shadow 1s; }
.lp.s4 .lp-glow { opacity: 1; box-shadow: 0 0 60px 30px rgba(255, 232, 160, .9), 0 0 160px 80px rgba(255, 244, 214, .65); }
.lp-doors { display: flex; perspective: 760px; z-index: 1; }
.lp-door { flex: 1; transition: transform 1.4s cubic-bezier(.5, 0, .2, 1); will-change: transform; }
.lp-door svg { width: 100%; height: 100%; display: block; }
.lp-door.l { transform-origin: left center; }
.lp-door.r { transform-origin: right center; }
.lp-door.r svg { transform: scaleX(-1); }
.lp.s4 .lp-door.l { transform: rotateY(-104deg); }
.lp.s4 .lp-door.r { transform: rotateY(104deg); }

/* Bókfellið */
.lp-paper { left: 50%; top: 54%; width: min(82vw, 330px); z-index: 5; padding: 18px 20px 22px; color: #2f2414; border-radius: 6px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .32  0 0 0 0 .16  0 0 0 .16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 50% 40%, #fbf3dd 0%, #f2e3bd 62%, #dcc38c 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 0 40px rgba(140, 100, 40, .25) inset, 0 26px 60px rgba(5, 8, 30, .55);
  opacity: 0; transform: translate(-50%, -40%) rotate(-4deg) scale(.92);
  transition: transform .8s cubic-bezier(.2, .9, .3, 1.2), opacity .6s; }
.lp.s1 .lp-paper { opacity: 1; transform: translate(-50%, -50%) rotate(-1.5deg); }
.lp.s3 .lp-paper { opacity: 0; transform: translate(-50%, -95%) rotate(-12deg) scale(.4); transition: transform .9s ease-in, opacity .7s ease-in; }
.lp-head { display: flex; justify-content: space-between; font: 700 11px/1.2 "Cinzel", Georgia, serif; letter-spacing: .16em; text-transform: uppercase; color: #8a6a3a;
  border-bottom: 1px solid rgba(138, 106, 58, .35); padding-bottom: 8px; }
.lp-q { font: 700 25px/1.2 "Cinzel", Georgia, serif; margin: 14px 0 12px; color: #2f2414; letter-spacing: .01em; }
.lp-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-top: 8px;
  border: 1px solid rgba(138, 106, 58, .4); border-radius: 4px; background: rgba(255, 252, 240, .45);
  font: 600 21px/1.1 "Cormorant Garamond", Georgia, serif; transition: background .4s 1.3s, border-color .4s 1.3s; }
.lp.s2 .lp-opt.yes { background: rgba(210, 232, 200, .55); border-color: #5b8a55; }
.lp-box { position: relative; width: 24px; height: 24px; flex: none; border: 2px solid #5a4528; border-radius: 3px; background: rgba(255, 252, 240, .7); }
.lp-check { position: absolute; left: -3px; top: -7px; width: 32px; height: 32px; overflow: visible; }
.lp-check path { fill: none; stroke: #1d2a52; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 46; stroke-dashoffset: 46; }
.lp.s2 .lp-check path { stroke-dashoffset: 0; transition: stroke-dashoffset .55s cubic-bezier(.5, 0, .3, 1) .72s; }
.lp-quill { position: absolute; left: 50%; bottom: 50%; width: 92px; height: 92px; transform-origin: 0 100%; opacity: 0;
  filter: drop-shadow(3px 6px 5px rgba(40, 25, 5, .35)); }
.lp.s2 .lp-quill { animation: lpQuill 1.8s ease-in-out forwards; }
@keyframes lpQuill {
  0% { opacity: 0; transform: translate(170px, 60px) rotate(-6deg); }
  14% { opacity: 1; }
  40% { transform: translate(-9px, 3px) rotate(0); }
  54% { transform: translate(-2px, 10px) rotate(1deg); }
  76% { transform: translate(16px, -15px) rotate(-1deg); }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translate(130px, -60px) rotate(8deg); }
}
.lp-paper .lp-seal { position: absolute; right: -12px; bottom: -14px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font: 900 20px "Cinzel", Georgia, serif; color: #6e1410; text-shadow: 0 1px 0 rgba(255, 180, 160, .4);
  background: radial-gradient(circle at 35% 30%, #d4473b 0%, #a3221b 45%, #6e1410 100%);
  box-shadow: 0 3px 6px rgba(60, 10, 5, .45), inset 0 -3px 6px rgba(0, 0, 0, .25), inset 0 2px 4px rgba(255, 150, 130, .35);
  transform: rotate(-12deg) scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) 1.9s; }
.lp.s2 .lp-seal { transform: rotate(-12deg) scale(1); }

/* Himnaríki */
.lp-heaven { inset: 0; z-index: 4; opacity: 0; transform: scale(.82); transition: opacity 1.1s, transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.lp.s6 .lp-heaven { opacity: 1; transform: none; }
.lp-aura { left: 50%; top: 48%; width: 120vmin; height: 120vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 246, 214, .7) 16%, rgba(255, 230, 170, .25) 34%, rgba(255, 230, 170, 0) 55%); }
.lp-rays { left: 50%; top: 48%; width: 190vmax; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 150, .5) 0 4deg, rgba(255, 255, 255, 0) 4deg 11deg, rgba(255, 240, 200, .35) 11deg 13deg, rgba(255, 255, 255, 0) 13deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 6%, rgba(0, 0, 0, .6) 14%, transparent 34%); mask-image: radial-gradient(circle, #000 0 6%, rgba(0, 0, 0, .6) 14%, transparent 34%);
  filter: blur(3px); animation: lpSpin 70s linear infinite; }
@keyframes lpSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.lp-ten { left: 50%; top: 46%; translate: -50% -50%; display: flex; align-items: center; z-index: 2; animation: lpBob 4s ease-in-out infinite; }
@keyframes lpBob { 0%, 100% { translate: -50% -50%; } 50% { translate: -50% calc(-50% - 12px); } }
.lp-num { font: 900 clamp(92px, calc(var(--sh) * .32), 168px)/1 "Cinzel", Georgia, serif; padding: 0 4px; letter-spacing: -.02em;
  background: linear-gradient(175deg, #fff8d8 0%, #f6d77a 22%, #d9a53a 46%, #fff0b8 52%, #c18a27 70%, #7d5413 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px rgba(110, 70, 10, .35);
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .6)) drop-shadow(0 8px 14px rgba(120, 80, 10, .45)) drop-shadow(0 0 26px rgba(255, 236, 170, .95)); }
.lp-halo { position: absolute; left: 50%; top: -14%; width: 40%; height: 14%; transform: translateX(-50%);
  border: 5px solid #ffd96e; border-radius: 50%;
  box-shadow: 0 0 18px 6px rgba(255, 220, 110, .95), inset 0 0 10px rgba(255, 230, 140, .95), 0 0 50px 16px rgba(255, 245, 210, .7);
  animation: lpHalo 3s ease-in-out infinite; }
@keyframes lpHalo { 50% { transform: translateX(-50%) translateY(-6px); } }
.lp-wing { width: clamp(90px, calc(var(--sh) * .34), 170px); }
.lp-wing.l { margin-right: -16px; }
.lp-wing.r { margin-left: -16px; transform: scaleX(-1); }
.lp-wing svg { display: block; width: 100%; transform-origin: 95% 50%; filter: drop-shadow(0 6px 10px rgba(150, 110, 40, .3));
  animation: lpFlap 1.3s ease-in-out infinite alternate; }
@keyframes lpFlap { from { transform: rotate(10deg) scaleY(.96); } to { transform: rotate(-16deg) scaleY(1.04); } }
.lp-sub { left: 0; right: 0; top: 77%; text-align: center; padding: 0 16px;
  font: 700 clamp(16px, 4.6vw, 22px)/1.2 "Cinzel", Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: #6e5320;
  text-shadow: 0 0 12px rgba(255, 255, 255, .95), 0 0 2px #fff;
  opacity: 0; transform: translateY(10px); transition: opacity .9s .8s, transform .9s .8s; }
.lp.s6 .lp-sub { opacity: 1; transform: none; }

/* Gullryk */
.lp-motes { inset: 0; z-index: 3; opacity: .35; transition: opacity 1.2s; }
.lp.s5 .lp-motes { opacity: 1; }
.lp-motes i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, #f3cf6a 45%, rgba(243, 207, 106, 0) 70%);
  animation: lpMote var(--t) ease-in-out var(--dl) infinite; }
@keyframes lpMote { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: .9; } 100% { transform: translate(18px, -90px); opacity: 0; } }

.lp-flash { inset: 0; z-index: 6; opacity: 0;
  background: radial-gradient(circle at 50% 28%, #fff 0%, rgba(255, 255, 255, .95) 40%, rgba(255, 246, 220, 0) 85%); }
.lp.s5 .lp-flash { animation: lpFlash 1.4s ease forwards; }
@keyframes lpFlash { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }
.lp-veil { inset: 0; z-index: 7; opacity: 0; background: #070b22; transition: opacity .9s ease; }
.lp.out .lp-veil { opacity: 1; }

.lp.instant, .lp.instant * { transition: none !important; }
.lp.instant .lp-quill, .lp.instant .lp-flash { animation: none !important; opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) { .lp *, .lp *::before { animation: none !important; transition: none !important; } }

/* Framhlið: innskráning ofan á sviðinu */
.lp-front { position: relative; z-index: 1; padding-top: calc(var(--sh) - 8px); padding-bottom: 24px;
  display: flex; flex-direction: column; gap: 14px; max-width: 440px; margin: 0 auto; }
.auth-card { margin: 0; color: var(--text); border-radius: 16px; border: 1px solid rgba(176, 138, 58, .55);
  background: linear-gradient(rgba(255, 253, 247, .78), rgba(250, 246, 236, .86)), url("marble.svg") center / 520px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(20, 24, 70, .35), inset 0 0 0 4px rgba(255, 255, 255, .55), inset 0 0 0 5px rgba(196, 156, 70, .45);
  animation: lpCardIn .9s cubic-bezier(.2, .8, .2, 1) both .2s; }
@keyframes lpCardIn { from { opacity: 0; transform: translateY(20px); } }
.auth-card .seg { background: rgba(255, 255, 255, .5); border-color: rgba(176, 138, 58, .45); }
.auth-card .seg button { font-family: "Cinzel", Georgia, serif; font-weight: 700; letter-spacing: .06em; color: #8a6a3a; }
.auth-card .seg button.on { color: #2a1d05; box-shadow: 0 1px 2px rgba(90, 60, 10, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.auth-card input { background: rgba(255, 253, 247, .9); border-color: rgba(176, 138, 58, .45); font-family: -apple-system, system-ui, sans-serif; }
.auth-card input:focus { outline: none; border-color: #b8892c; box-shadow: 0 0 0 3px rgba(226, 185, 85, .35); }
.auth-card #go { font-family: "Cinzel", Georgia, serif; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 16px;
  box-shadow: 0 6px 16px rgba(140, 100, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(120, 80, 10, .25); }
.auth-card .muted { font-size: 16px; }
.lp-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-features span { padding: 7px 14px; border-radius: 999px; font: 600 17px/1.2 "Cormorant Garamond", Georgia, serif; color: #3a2d14;
  background: rgba(255, 253, 247, .78); border: 1px solid rgba(176, 138, 58, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
