/* ============================================================
   nickihub — tela de acesso
   ============================================================ */

.lock-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: var(--void);
}

.lock-aura {
  position: fixed; inset: -30%;
  background:
    radial-gradient(520px 520px at 30% 32%, rgba(255, 177, 59, .16), transparent 62%),
    radial-gradient(560px 560px at 70% 68%, rgba(181, 123, 255, .14), transparent 64%);
  filter: blur(12px);
  animation: aura-drift 16s ease-in-out infinite alternate;
}
@keyframes aura-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.lock-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
}

.lock-screen { position: relative; z-index: 2; padding: 24px; width: 100%; display: grid; place-items: center; }

.lock-card {
  width: min(400px, 92vw);
  padding: 34px 32px 30px;
  border-radius: 22px;
  background: rgba(22, 18, 29, .82);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-str);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
  text-align: center;
  animation: card-up .6s var(--ease) both;
}
@keyframes card-up {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.lock-card.shake { animation: shake .45s var(--ease) both; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-9px); }
  38% { transform: translateX(8px); }
  58% { transform: translateX(-5px); }
  78% { transform: translateX(3px); }
}

.lock-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.lock-brand .brand-text { font-size: 20px; }

.lock-ring {
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--honey);
  border: 1px solid rgba(255, 177, 59, .3);
  background: radial-gradient(circle at 50% 40%, rgba(255, 177, 59, .16), transparent 70%);
  position: relative;
}
.lock-ring::after {
  content: '';
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 177, 59, .18);
  animation: ring-pulse 2.8s var(--ease) infinite;
}
@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.lock-icon { width: 40px; height: 40px; }

.lock-label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .22em;
  color: var(--faint);
  margin: 0 0 8px;
}
.lock-card h1 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.lock-sub { color: var(--faint); font-size: 13px; margin: 0 0 22px; }

.lock-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.lock-form .field input { height: 46px; text-align: center; letter-spacing: .18em; font-size: 15px; }
.lock-form .field > span { text-align: center; }
.lock-submit { justify-content: center; height: 46px; }

.lock-error {
  margin: 2px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--danger);
  animation: view-in .3s var(--ease) both;
}

/* ============================================================
   DESBLOQUEIO
   ============================================================ */
.unlock-stage {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}

.unlock-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--mint);
  border: 1px solid rgba(61, 220, 132, .35);
  background: radial-gradient(circle at 50% 40%, rgba(61, 220, 132, .18), transparent 70%);
  animation: unlock-pop .55s var(--ease) both;
}
@keyframes unlock-pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.unlock-ring::after {
  content: '';
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(61, 220, 132, .5);
  animation: unlock-wave 1.6s var(--ease) infinite;
}
@keyframes unlock-wave {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.unlock-ring svg { width: 46px; height: 46px; }
.unlock-shackle {
  transform-origin: 22px 27px;
  animation: shackle-open .6s var(--ease) .25s both;
}
@keyframes shackle-open {
  from { transform: rotate(0) translateY(0); }
  to   { transform: rotate(-16deg) translateY(-2px); }
}

.unlock-text {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .24em;
  color: var(--mint);
  animation: view-in .5s var(--ease) .2s both;
}

.unlock-bar {
  width: 190px; height: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.unlock-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--honey));
  animation: unlock-fill 1.9s linear both;
}
@keyframes unlock-fill { from { width: 0; } to { width: 100%; } }

.unlock-link { font-size: 12.5px; color: var(--faint); }
.unlock-link a { text-decoration: underline; }
.unlock-link a:hover { color: var(--honey); }

@media (prefers-reduced-motion: reduce) {
  .lock-aura, .lock-ring::after, .unlock-ring::after { animation: none; }
}
