:root{
  --bg:#0A0A0A;
  --surface:#111111;
  --border:rgba(255,255,255,.10);
  --border2:rgba(255,255,255,.16);
  --text:#EDEDED;
  --muted:rgba(237,237,237,.62);
  --gold:#e0c278;

  --shadow:0 20px 70px rgba(0,0,0,.55);
  --shadow2:0 16px 50px rgba(0,0,0,.45);

  --r:18px;
  --r2:26px;

  --focus:0 0 0 3px rgba(216,185,106,.22);

  --goldGlow:0 0 18px rgba(216,185,106,.14);
  --sheen:linear-gradient(120deg, transparent 10%, rgba(255,255,255,.06) 32%, transparent 55%);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  background:
    radial-gradient(1200px 700px at 50% -15%, rgba(216,185,106,.08), transparent 55%),
    radial-gradient(900px 600px at 50% 115%, rgba(255,255,255,.05), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  position:relative;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.045;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* Base layout (mobile-first) */
.nyx-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 16px;
}

.nyx-shell{
  width:min(560px,100%);
  display:grid;
  gap:22px;
}

/* Brand */
.nyx-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
  opacity:0;
  transform:translateY(6px);
  animation:in .7s ease forwards;
}

.nyx-dot{display:none}

.nyx-word{
  font-family: "Cinzel", serif;
  font-weight:700;
  font-size:38px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--gold);
  line-height:1;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.35),
    var(--goldGlow);
}

/* Monogram mark */
.nyx-mark{
  display:flex;
  justify-content:center;
  margin:10px 0 14px;
  opacity:0;
  transform:translateY(8px);
  animation:in .78s ease .04s forwards;
}

.nyx-monogram{
  width:48px;
  height:48px;
  color:var(--gold);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
  opacity:.95;
}

.nyx-tag{
  text-align:center;
  letter-spacing:.34em;
  text-transform:uppercase;
  font-size:11px;
  color:rgba(237,237,237,.58);
  margin-top:6px;
  margin-bottom:18px;
  opacity:0;
  transform:translateY(8px);
  animation:in .78s ease .08s forwards;
}

.nyx-left::after{
  content:"";
  display:block;
  width:120px;
  height:1px;
  margin:18px auto 0; /* centered on mobile */
  background:linear-gradient(
    to right,
    transparent,
    rgba(224,194,120,.45),
    transparent
  );
  opacity:.7;
}

/* Card */
.nyx-card{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
  opacity:0;
  transform:translateY(10px);
  animation:in .78s ease .06s forwards;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
  max-width:100%;
  margin:0 auto;

  /* richer glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nyx-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: var(--sheen);
  opacity:.14;
  transform:translateX(-30%);
  pointer-events:none;
}

.nyx-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
  border-color: rgba(216,185,106,.22);
}

.nyx-in{padding:24px}
.nyx-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.nyx-title{font-size:26px;line-height:1.15;margin:0;font-weight:600}
.nyx-sub{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
  max-width:46ch;
}
.nyx-div{height:1px;background:var(--border);margin:18px 0}

/* Badges */
.nyx-badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  border:1px solid var(--border);
  color:rgba(237,237,237,.78);
  background:rgba(255,255,255,.02);
  font-size:12px;
}
.nyx-ring{width:8px;height:8px;border-radius:999px;background:rgba(237,237,237,.25)}
.nyx-badge.gold{
  border-color:rgba(216,185,106,.40);
  background:rgba(216,185,106,.08);
  color:rgba(237,237,237,.90)
}
.nyx-badge.gold .nyx-ring{background:var(--gold)}

/* Inputs */
.nyx-input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  color:var(--text);
  outline:none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nyx-input:focus{
  border-color:rgba(216,185,106,.45);
  background:rgba(255,255,255,.03);

  /* Enhanced glow (suggested polish + matches your theme) */
  box-shadow:
    var(--focus),
    0 0 18px rgba(216,185,106,.08);
}

/* Buttons */
.nyx-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

.nyx-btn{
  cursor:pointer;
  border-radius:999px;
  padding:12px 16px;
  border:1px solid var(--border2);
  background:transparent;
  color:rgba(237,237,237,.92);
  transition:transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.nyx-btn:hover{transform:translateY(-1px)}
.nyx-btn:active{transform:translateY(0)}

.nyx-btn.primary{
  border-color:rgba(216,185,106,.55);
  background:rgba(216,185,106,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.nyx-btn.primary:hover{
  background:rgba(216,185,106,.16);
  border-color:rgba(216,185,106,.75);
  box-shadow: 0 14px 34px rgba(0,0,0,.26);
}

.nyx-btn.solid{
  background:rgba(237,237,237,.92);
  color:#0B0B0B;
  border-color:rgba(237,237,237,.92);
}
.nyx-btn.solid:hover{background:#fff;border-color:#fff}

/* Panel + footer */
.nyx-panel{
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.02);
  line-height:1.75
}

.nyx-foot{
  text-align:center;
  color:rgba(237,237,237,.38);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-top:18px;
  opacity:.55;
}

/* Animation */
@keyframes in{to{opacity:1;transform:translateY(0)}}

/* ===========================
   DESKTOP (single clean rule)
=========================== */
@media (min-width: 900px){
  .nyx-page{
    padding:64px 24px;
  }

  .nyx-shell{
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 440px 520px; /* brand / card */
    column-gap: 18px;
    row-gap: 18px;
    align-items: center;
    justify-content: center;
  }

  /* Brand column pulls toward the card */
  .nyx-left{
    justify-self: end;
    text-align: right;
  }

  .nyx-brand{ justify-content: flex-end; margin-bottom: 8px; }
  .nyx-mark{ justify-content: flex-end; margin: 8px 0 10px; }
  .nyx-tag{
    text-align: right;
    margin-bottom: 14px;
    letter-spacing: .32em;
  }

  .nyx-left::after{
    margin: 16px 0 0 auto;
    width: 140px;
  }

  .nyx-word{
    font-size:58px;
    letter-spacing:0.16em;
    line-height:.98;
  }

  .nyx-monogram{
    width:58px;
    height:58px;
  }

  /* App/card column */
  #app{
    grid-column: 2;
    justify-self: start;
  }

  .nyx-card{
    border-radius: var(--r2);
    max-width: 520px;
    margin: 0;
  }

  /* Footer spans under both */
  .nyx-foot{
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    text-align: center;
    margin-top: 22px;
  }
}

/* ===========================
   Luxury shimmer loader
   (used by "Opening vault" screen)
=========================== */
.nyx-shimmer{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.nyx-shimmer::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 20%,
    rgba(224,194,120,.10) 35%,
    rgba(255,255,255,0) 55%
  );
  transform: translateX(-120%);
  animation: nyxShimmer 1.15s ease-in-out infinite;
  pointer-events:none;
  opacity:.9;
}

@keyframes nyxShimmer{
  to { transform: translateX(120%); }
}

.nyx-skel-line{
  height: 12px;
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.nyx-skel-line.w60{ width: 60%; }
.nyx-skel-line.w80{ width: 80%; }
.nyx-skel-line.w40{ width: 40%; }

/* ===========================
   OPTIONAL POLISH (requested)
   - Password toggle wrapper + button
   - Spinner
   - Reduced motion
=========================== */
.nyx-passwrap{ position:relative; }

/* Works with nyx-input inside */
.nyx-togglepw{
  position:absolute;
  right:12px;
  top:50%;
  transform: translateY(-50%);
  background:transparent;
  border:none;
  font-family:inherit;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:rgba(224,194,120,.78);
  cursor:pointer;
  padding:6px 8px;
  transition: all .2s ease;
}
.nyx-togglepw:hover{
  color:rgba(224,194,120,1);
  letter-spacing:1.5px;
}

.nyx-spin{
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(224,194,120,.35);
  border-top-color: rgba(224,194,120,1);
  display:inline-block;
  vertical-align:-2px;
  animation: nyxSpin .8s linear infinite;
}
@keyframes nyxSpin { to { transform: rotate(360deg); } }

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .nyx-card, .nyx-brand, .nyx-mark, .nyx-tag{
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .nyx-card:hover{ transform:none; }
  .nyx-shimmer::before{ animation:none; }
  .nyx-spin{ animation:none; }
}