.vk-auth-open {
  overflow: hidden !important;
}

.vk-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  padding: 20px;
  place-items: center;
  overflow-y: auto;
  background: rgba(4, 4, 3, 0.78);
  backdrop-filter: blur(8px);
}

.vk-auth-modal[hidden] {
  display: none;
}

.vk-auth-panel {
  position: relative;
  width: min(100%, 500px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(213, 173, 89, 0.3);
  border-radius: 24px;
  background: #12110d;
  color: #f7f3e9;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
}

.vk-auth-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.vk-auth-eyebrow {
  margin: 0 0 9px;
  color: #e2bf70;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.vk-auth-panel h2 {
  margin: 0 42px 12px 0;
  color: #f7f3e9;
  font-size: clamp(1.8rem, 5vw, 2.45rem);
  line-height: 1.08;
}

.vk-auth-intro,
.vk-auth-setup p {
  margin: 0 0 22px;
  color: #c9c1b3;
  font-size: 0.91rem;
  line-height: 1.6;
}

.vk-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(213, 173, 89, 0.22);
  border-radius: 50%;
  background: transparent;
  color: #c9c1b3;
  font-size: 1.35rem;
  cursor: pointer;
}

.vk-auth-tabs {
  display: grid;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid rgba(213, 173, 89, 0.18);
  border-radius: 14px;
  background: #0b0b08;
  grid-template-columns: 1fr 1fr;
}

.vk-auth-tabs button {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aaa499;
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
}

.vk-auth-tabs button[aria-selected="true"] {
  background: #222017;
  color: #f1d58e;
}

.vk-auth-form {
  display: grid;
}

.vk-auth-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.vk-auth-form label span {
  color: #c9c1b3;
  font-size: 0.76rem;
  font-weight: 750;
}

.vk-auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid rgba(213, 173, 89, 0.22);
  border-radius: 12px;
  outline: 0;
  background: #0a0a08;
  color: #fffaf0;
  font: inherit;
}

.vk-auth-form input:focus {
  border-color: #d5ad59;
  box-shadow: 0 0 0 3px rgba(213, 173, 89, 0.18);
}

.vk-auth-note,
.vk-auth-message {
  margin: 0 0 13px;
  color: #aaa499;
  font-size: 0.74rem;
  line-height: 1.45;
}

.vk-auth-message {
  min-height: 1.1rem;
  color: #e4aaa4;
  font-weight: 700;
}

.vk-auth-message[data-state="success"] {
  color: #b7d3b4;
}

.vk-auth-submit {
  min-height: 50px;
  padding: 11px 18px;
  border: 1px solid #e2bf70;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d28a, #c5963f);
  color: #16130c;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.vk-auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.vk-auth-setup {
  padding: 18px;
  border: 1px solid rgba(213, 173, 89, 0.23);
  border-radius: 14px;
  background: rgba(213, 173, 89, 0.07);
}

.vk-auth-setup strong {
  display: block;
  margin-bottom: 8px;
  color: #f1d58e;
  font-size: 0.88rem;
}

.vk-auth-setup p {
  margin: 0;
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .vk-auth-modal {
    padding: 10px;
    place-items: end center;
  }

  .vk-auth-panel {
    max-height: calc(100svh - 20px);
    overflow-y: auto;
    border-radius: 22px 22px 14px 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .vk-auth-panel {
    animation: vk-auth-in 180ms ease both;
  }

  @keyframes vk-auth-in {
    from {
      transform: translateY(10px);
      opacity: 0;
    }
  }
}
