/* LV Noir — self-lit monograms, sparkling details, and a stable single-card form. */
:root {
  color-scheme: dark;
  --noir: #080909;
  --paper: #f0eeea;
  --muted: #96958f;
  --champagne: #c8baa0;
  --el-color-primary: #c8baa0;
  --el-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  background: var(--noir);
  color: var(--paper);
  font-family: var(--el-font-family);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
::selection { color: #fff; background: #665b46; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.lv-login { min-height: 100vh; min-height: 100dvh; overflow: hidden; overflow: clip; }
.lv-layout {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --light-x: 50%;
  --light-y: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 116px max(24px, env(safe-area-inset-right)) 116px max(24px, env(safe-area-inset-left));
}

/* All movement stays in the decoration; the form never tilts or shifts. */
.noir-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, #26221a 0, #121310 43%, #080909 78%);
}
.ambient-light {
  position: absolute;
  inset: -15%;
  opacity: .9;
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), rgba(218, 203, 176, .035), transparent 46%);
  transition: opacity 1.2s ease;
}
.monogram-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* One shared transform keeps the grey and luminous glyphs perfectly aligned. */
  animation: canvas-drift 14s ease-in-out infinite alternate;
}
.monogram-pattern {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  opacity: .29;
  mask-image: radial-gradient(ellipse at center, transparent 13%, #000 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 13%, #000 75%);
}
.monogram-pattern--letters, .monogram-pattern--symbols {
  opacity: .42;
  filter: drop-shadow(0 0 3px rgba(244, 208, 139, .55));
  will-change: opacity;
  /* Only the actual LV / flower / star / diamond pixels emit light, on every screen size. */
  animation: canvas-motif-glow 3.6s ease-in-out -1s infinite;
}
.monogram-pattern--symbols {
  animation-duration: 4.2s;
  animation-delay: -2.5s;
}
.noir-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 23%, transparent 70%, rgba(0, 0, 0, .4));
}
.canvas-texture {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.22' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.gold-dust, .background-glints { position: absolute; inset: 0; }
.gold-dust span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: .45;
  background: #f4dfaa;
  box-shadow: 0 0 10px 1px rgba(239, 196, 113, .55);
  animation: dust-twinkle var(--duration) ease-in-out var(--delay) infinite;
}
.luxury-glint {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size, 14px);
  height: var(--size, 14px);
  overflow: visible;
  fill: #ffedc5;
  opacity: .55;
  filter: drop-shadow(0 0 7px rgba(255, 211, 128, .85));
  animation: glint-twinkle var(--duration, 3.2s) ease-in-out var(--delay, 0s) infinite;
}
.page-masthead {
  position: absolute;
  top: max(36px, env(safe-area-inset-top));
  left: max(44px, env(safe-area-inset-left));
  right: max(44px, env(safe-area-inset-right));
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #aba291;
  font-size: 10px;
  letter-spacing: 3.5px;
  line-height: 1.5;
}
.edition-number { color: #8d8c84; letter-spacing: 2.5px; }

.login-card {
  position: relative;
  isolation: isolate;
  width: clamp(320px, 38vw, 440px);
  max-width: 100%;
  padding: 42px 40px;
  border: 1px solid rgba(216, 185, 126, .3);
  border-radius: 18px;
  background: radial-gradient(ellipse at 12% 0, rgba(143, 110, 54, .15), transparent 58%), linear-gradient(150deg, rgba(36, 34, 27, .94), rgba(19, 20, 17, .97) 45%, rgba(17, 18, 15, .98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .55), 0 0 50px rgba(191, 148, 72, .06), inset 0 1px rgba(255, 235, 191, .08), inset 0 -1px rgba(207, 173, 108, .05);
}
.card-aura {
  position: absolute;
  z-index: -1;
  inset: -70px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse, transparent 36%, rgba(196, 151, 71, .14) 52%, transparent 72%);
  animation: halo-breathe 4.2s ease-in-out infinite alternate;
}
.card-metal-border {
  display: none;
  position: absolute;
  z-index: 2;
  inset: -1px;
  overflow: hidden;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .card-metal-border { display: block; }
}
.card-metal-border::before {
  content: "";
  position: absolute;
  inset: -70%;
  background: conic-gradient(from 30deg, transparent 0deg, rgba(181, 145, 80, .18) 42deg, #ecd29b 65deg, #fff2cc 70deg, rgba(196, 155, 86, .24) 83deg, transparent 110deg, transparent 180deg, rgba(181, 145, 80, .14) 222deg, #d5b273 244deg, #fff0c1 250deg, transparent 285deg);
  animation: frame-orbit 5s linear infinite;
}
.card-sheen {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.card-sheen::before {
  content: "";
  position: absolute;
  inset: -65% -100%;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 230, 176, .025) 47%, rgba(255, 230, 176, .15) 50%, rgba(255, 230, 176, .025) 53%, transparent 58%);
  animation: card-polish 4.4s ease-in-out infinite;
}
.card-glints { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.card-glint--one { --x: 17%; --y: -9px; --size: 18px; --delay: -.7s; }
.card-glint--two { --x: calc(100% - 10px); --y: 68%; --size: 20px; --delay: -1.8s; --duration: 3.6s; }
.card-glint--three { --x: 9%; --y: calc(100% - 7px); --size: 14px; --delay: -2.6s; --duration: 4.1s; }
.login-header, .key-form { position: relative; z-index: 1; }
.login-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 130px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(222, 186, 118, .09), transparent 68%);
}
.card-hairline {
  position: absolute;
  top: -1px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 196, 164, .58), transparent);
  opacity: .9;
  pointer-events: none;
}
.login-header { text-align: center; margin-bottom: 32px; }
.monogram-parallax {
  width: 86px;
  height: 73px;
  margin: 0 auto;
  transform: perspective(500px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}
.signature-float { animation: signature-breathe 3.5s ease-in-out infinite; }
.signature-main { width: 86px; height: 73px; overflow: visible; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)) drop-shadow(0 0 12px rgba(231, 195, 125, .14)); }
.signature-depth { fill: #625947; }
.signature-shimmer { opacity: .9; animation: signature-shine 3.2s ease-in-out infinite; }

.key-form {
  --el-text-color-regular: #ddd8cf;
  --el-text-color-placeholder: #93948e;
  --el-border-color: #3a3932;
  --el-fill-color-blank: #151615;
  --el-disabled-bg-color: #171817;
  --el-disabled-text-color: #85867f;
  --el-disabled-border-color: #393a34;
}
.key-form .el-form-item { margin-bottom: 20px; }
.key-form .el-form-item__label {
  height: auto;
  margin-bottom: 10px;
  padding: 0;
  color: #d1c7b3;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1px;
}
.key-form .el-input { font-size: 14px; }
.key-form .el-input__wrapper {
  height: 52px;
  padding: 0 14px;
  border-radius: 7px;
  background: linear-gradient(110deg, #171814, #10120f);
  box-shadow: 0 0 0 1px #514937 inset, 0 1px rgba(255, 236, 194, .035);
  transition: box-shadow .25s, background .25s;
}
.key-form .el-input__wrapper:hover { box-shadow: 0 0 0 1px #95805a inset, 0 0 16px rgba(203, 166, 97, .05); }
.key-form .el-input__wrapper.is-focus {
  background: #171916;
  box-shadow: 0 0 0 1px #d1b47d inset, 0 0 0 3px rgba(187, 168, 128, .1), 0 0 24px rgba(209, 176, 112, .08);
}
.key-form .el-input__inner { height: 50px; color: #edeae2; caret-color: #d4c3a4; }
.key-form .el-input__inner::placeholder { color: #94958e; font-size: 13px; }
.key-form .el-input__prefix-inner > :last-child { margin-right: 11px; }
.key-icon { width: 17px; height: 17px; fill: none; stroke: #b2a387; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.key-form .el-input__suffix-inner { gap: 6px; }
.key-form .el-input__icon { color: #999b91; }
.key-form .el-input__icon:hover { color: #e2d5bb; }
.key-form .el-input.is-disabled .el-input__wrapper { background: #171817; box-shadow: 0 0 0 1px #34362f inset; }
.key-form .el-input__inner:-webkit-autofill {
  -webkit-text-fill-color: #edeae2;
  box-shadow: 0 0 0 1000px #171916 inset;
  caret-color: #d4c3a4;
}
.access-button.el-button {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid #e6d4ac;
  border-radius: 7px;
  background: linear-gradient(110deg, #bda476, #e7d7b4 48%, #d4bd8d 76%, #bfaa80);
  color: #24231f;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .22), 0 0 22px rgba(214, 183, 125, .1), inset 0 1px rgba(255, 255, 255, .45);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: transform .25s, box-shadow .25s, border-color .25s, filter .25s;
}
.access-button.el-button > span { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; }
.access-button.el-button svg { width: 22px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .3s; }
.access-button::before {
  content: "";
  position: absolute;
  inset: -50% -80%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .36) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: button-lustre 3.8s ease-in-out infinite;
}
.access-button.el-button:hover:not(.is-loading):not(.is-disabled) {
  border-color: #e4dac8;
  color: #171914;
  filter: brightness(1.05);
  box-shadow: 0 6px 24px rgba(213, 176, 109, .22);
  transform: translateY(-1px);
}
.access-button:hover::before { animation-duration: 1.8s; }
.access-button:hover svg { transform: translateX(3px); }
.access-button.el-button:active:not(.is-loading) { transform: translateY(0); }
.access-button.el-button.is-loading { opacity: .7; }
.access-button.el-button.is-loading::before { inset: 0; transform: none; animation: none; background: rgba(15, 16, 14, .1); }
.access-button.el-button:focus-visible, .boot-retry:focus-visible {
  outline: 2px solid #e6d4ad;
  outline-offset: 4px;
}

.page-footer {
  position: absolute;
  right: 24px;
  bottom: max(29px, env(safe-area-inset-bottom));
  left: 24px;
  text-align: center;
  color: #7f8279;
}
.footer-signature { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 8px; letter-spacing: 3px; }
.footer-signature svg { width: 13px; height: 13px; fill: #858270; color: #858270; }

/* Teleported Element Plus notices are styled at body level as well. */
.el-message {
  max-width: calc(100vw - 32px);
  --el-message-bg-color: #25241f;
  --el-message-border-color: #51483a;
  --el-message-text-color: #eee4d1;
  --el-color-error: #e2ad97;
  --el-text-color-placeholder: #b5aa96;
  border-radius: 8px;
  box-shadow: 0 8px 30px #0005;
}
.el-message .el-message__content { line-height: 1.6; overflow-wrap: anywhere; }
.lv-boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: var(--noir);
  color: #c8baa0;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
}
.lv-boot[hidden], .lv-boot.is-hidden { display: none; }
.boot-flower { font-size: 30px; animation: boot-breathe 2s ease-in-out infinite; }
.boot-retry { border: 1px solid #7c705b; border-radius: 6px; padding: 10px 22px; background: #26261f; color: #e1d4ba; cursor: pointer; }

/* Brighter, faster, staggered light; the form itself remains stable. */
.is-ready .login-card { animation: card-arrive .9s cubic-bezier(.2, .65, .2, 1) both; }
.is-ready .page-masthead, .is-ready .page-footer { animation: details-arrive 1.2s ease both; }
@keyframes card-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes details-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes canvas-drift { from { transform: translate3d(-5px, -8px, 0); } to { transform: translate3d(5px, 8px, 0); } }
@keyframes signature-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes signature-shine { 0%, 45% { transform: translateX(0) skewX(-18deg); } 90%, 100% { transform: translateX(430px) skewX(-18deg); } }
@keyframes boot-breathe { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes halo-breathe { from { opacity: .45; } to { opacity: 1; } }
@keyframes canvas-motif-glow { 0%, 100% { opacity: .24; } 42%, 58% { opacity: .8; } }
@keyframes dust-twinkle { 0%, 100% { opacity: .16; transform: translate3d(0, 8px, 0); } 50% { opacity: 1; transform: translate3d(6px, -18px, 0); } }
@keyframes glint-twinkle { 0%, 100% { opacity: .15; transform: scale(.65) rotate(-8deg); } 25%, 75% { opacity: .38; transform: scale(.9) rotate(4deg); } 50% { opacity: 1; transform: scale(1.25) rotate(20deg); } }
@keyframes frame-orbit { to { transform: rotate(360deg); } }
@keyframes card-polish { 0%, 12% { opacity: 0; transform: translateX(-35%); } 28% { opacity: 1; } 72%, 100% { opacity: 0; transform: translateX(35%); } }
@keyframes button-lustre { 0%, 35% { transform: translateX(-60%); opacity: 0; } 50% { opacity: 1; } 85%, 100% { transform: translateX(60%); opacity: 0; } }

@media (max-width: 768px) {
  .lv-layout { padding: 96px max(20px, env(safe-area-inset-right)) 106px max(20px, env(safe-area-inset-left)); }
  .login-card { width: 420px; padding: 36px 28px; }
  .page-masthead { top: max(27px, env(safe-area-inset-top)); left: 26px; right: 26px; font-size: 9px; letter-spacing: 2.5px; }
  .key-form .el-input__inner { font-size: 16px; }
  .page-footer { bottom: max(25px, env(safe-area-inset-bottom)); }
  .gold-dust span:nth-child(n + 25), .background-glints .luxury-glint:nth-child(n + 6) { display: none; }
}
@media (max-width: 380px) {
  .lv-layout { padding: 78px 16px 92px; }
  .login-card { padding: 30px 23px; border-radius: 15px; }
  .login-header { margin-bottom: 26px; }
  .page-masthead { top: 25px; left: 24px; right: 24px; }
  .footer-signature { letter-spacing: 2px; gap: 10px; }
}
@media (max-height: 700px) and (min-width: 769px) {
  .lv-layout { padding-top: 82px; padding-bottom: 96px; }
  .login-card { padding-top: 30px; padding-bottom: 30px; }
  .login-header { margin-bottom: 24px; }
  .page-masthead { top: 28px; }
}
.is-page-hidden *, .is-page-hidden *::before, .is-page-hidden *::after { animation-play-state: paused !important; }
.is-reduced-motion *, .is-reduced-motion *::before, .is-reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}
.is-reduced-motion .monogram-parallax { transform: none; }
.is-reduced-motion .card-sheen { display: none; }
.is-reduced-motion .monogram-pattern--letters, .is-reduced-motion .monogram-pattern--symbols { opacity: .32; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .monogram-parallax { transform: none; }
  .card-sheen { display: none; }
  .monogram-pattern--letters, .monogram-pattern--symbols { opacity: .32; will-change: auto; }
}
