:root {
  --bg: #000000;
  --gold-2: #FCF6BA;
  --gold-3: #B38728;
  --gold-4: #FBF5B7;
  --text-muted: #a89870;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: #000000;
  color: var(--gold-2);
  font-family: "Montserrat", system-ui, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2.5rem 1.25rem 3rem;
  background: #000000;
}

.gold-chrome {
  background-image: linear-gradient(
    180deg,
    #BF953F 0%,
    #FCF6BA 25%,
    #B38728 50%,
    #FBF5B7 75%,
    #AA771C 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.header {
  width: 100%;
  text-align: center;
  margin-bottom: clamp(2rem, 6vh, 3.5rem);
}

.header h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.vault {
  position: relative;
  width: min(100%, 420px);
  min-height: 340px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.login-layer {
  padding: 2rem 1.75rem 1.75rem;
}

.panel { display: none; }
.panel.is-active { display: block; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #B38728;
  background: #050505;
  color: #FCF6BA;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: #FCF6BA;
  box-shadow: 0 0 0 2px rgba(191, 149, 63, 0.25);
}

.btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1205;
  background-image: linear-gradient(
    180deg,
    #FCF6BA 0%,
    #BF953F 35%,
    #B38728 55%,
    #FBF5B7 80%,
    #AA771C 100%
  );
  transition: filter 0.2s, transform 0.15s;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: wait; }

.btn-link {
  display: block;
  width: 100%;
  margin-top: 1rem;
  border: none;
  background: transparent;
  color: var(--gold-3);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}

.msg {
  min-height: 1.25rem;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #c45c5c;
}

.msg.ok { color: #B38728; }

.dragon-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: none;
  border-radius: inherit;
  background: #000000;
  cursor: pointer;
  opacity: 1;
  transition: opacity 1.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.dragon-layer img {
  width: min(100%, 320px);
  height: auto;
  max-height: 280px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 18px rgba(200, 200, 204, 0.22));
}

.dragon-layer.is-fading { opacity: 0; pointer-events: none; }
.dragon-layer.is-gone { visibility: hidden; }

.footer {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #5a4e35;
  text-align: center;
}
