/* Suite financiera ??? vault access */
:root {
  --bg: #000000;
  --gold-1: #BF953F;
  --gold-2: #FCF6BA;
  --gold-3: #B38728;
  --gold-4: #FBF5B7;
  --gold-5: #AA771C;
  --text-muted: #a89870;
}

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

html {
  height: 100%;
  background: #000;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.25rem, 3.5vh, 2.5rem) clamp(1rem, 3vw, 2rem);
  background: #000000;
  position: relative;
  overflow-x: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.gold-chrome {
  background-image: linear-gradient(
    180deg,
    var(--gold-1) 0%,
    var(--gold-2) 25%,
    var(--gold-3) 50%,
    var(--gold-4) 75%,
    var(--gold-5) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.header {
  width: min(100%, 96vw);
  text-align: center;
  margin: 0 0 clamp(1rem, 3.2vh, 2.25rem);
  flex-shrink: 0;
}

.header h1 {
  font-size: clamp(2.22rem, 5.4vw, 3.66rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-indent: 0.04em;
  display: inline-block;
  transform: scaleX(1.083);
  transform-origin: center;
  animation: title-breathe 5.5s ease-in-out infinite;
}
}

.header h1 .title-mark {
  display: inline;
  letter-spacing: 0.04em;
}
}

.header h1::after {
  content: "";
  display: block;
  width: min(38%, 220px);
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(191, 149, 63, 0.15) 20%,
    rgba(252, 246, 186, 0.55) 50%,
    rgba(191, 149, 63, 0.15) 80%,
    transparent 100%
  );
}

@keyframes title-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.vault {
  position: relative;
  width: min(100%, 460px);
  min-height: clamp(340px, 46vh, 520px);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  flex: 0 0 auto;
}
}

.login-layer {
  padding: clamp(1.75rem, 3vh, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
}

.header h1 .title-secret {
  all: unset;
  cursor: pointer;
  display: inline;
  margin-left: -0.06em;
  letter-spacing: 0;
  font: inherit;
  font-weight: inherit;
  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 h1 .title-secret:focus-visible {
  outline: 1px solid rgba(252, 246, 186, 0.45);
  outline-offset: 3px;
}

.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; }




#panel-email .field label[for="recover-email"] {
  text-align: center;
  width: 100%;
  display: block;
}

#panel-otp .field label[for="otp-code"] {
  text-align: center;
  width: 100%;
  display: block;
}

.dragon-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vh, 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%, 380px);
  height: auto;
  max-height: min(72vh, 420px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 32px rgba(200, 200, 204, 0.3));
  animation: dragon-presence 6.5s ease-in-out infinite;
}
}

@keyframes dragon-presence {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 28px rgba(200, 200, 204, 0.28)); }
  50% { transform: scale(1.025); filter: drop-shadow(0 0 42px rgba(252, 246, 186, 0.2)); }
}

.dragon-layer:hover img {
  animation: none;
  transform: scale(1.04);
  filter: drop-shadow(0 0 48px rgba(252, 246, 186, 0.28));
  transition: transform 0.45s ease, filter 0.45s ease;
}

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

.footer {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  padding-top: 0.5rem;
  font-size: clamp(0.78rem, 1.35vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  flex-shrink: 0;
  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;
  filter: drop-shadow(0 0 10px rgba(191, 149, 63, 0.22));
}


/* proportion-desktop */
@media (min-width: 1100px) {
  body {
    justify-content: center;
    gap: 0;
    padding: 3.5vh 2rem 3vh;
  }
  .header {
    width: min(100%, 92vw);
    margin-bottom: 2vh;
  }
  .header h1 {
    font-size: clamp(3.18rem, 4.32vw, 4.26rem);
    letter-spacing: 0.05em;
    text-indent: 0.05em;
    transform: scaleX(1.083);
  }
  .header h1::after {
    width: min(36%, 300px);
    margin-top: 1.1rem;
  }
  .vault {
    width: min(100%, 520px);
    min-height: min(54vh, 540px);
  }
  .dragon-layer img {
    width: min(96%, 450px);
    max-height: min(50vh, 470px);
  }
  .field input {
    padding: 1rem 1.15rem;
    font-size: 1.02rem;
  }
  .btn {
    padding: 1.05rem 1.1rem;
    font-size: 0.9rem;
  }
  .footer {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
  }
}

@media (min-width: 1600px) {
  .header h1 {
    font-size: 4.68rem;
    letter-spacing: 0.06em;
    text-indent: 0.06em;
    transform: scaleX(1.083);
  }
  .header h1::after {
    width: 340px;
  }
  .vault {
    width: 560px;
    min-height: 580px;
  }
  .dragon-layer img {
    width: 510px;
    max-height: 510px;
  }
  .footer {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .header h1 {
    font-size: clamp(2.1rem, 10vw, 2.7rem);
    letter-spacing: 0.03em;
    text-indent: 0.03em;
    transform: scaleX(1.06);
  }
  .vault {
    min-height: 420px;
  }
  .dragon-layer img {
    width: min(100%, 300px);
    max-height: 52vh;
  }
  .footer {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
