:root {
  --vm-auth-bg: #08090d;
  --vm-auth-panel: #14141d;
  --vm-auth-text: #f8fafc;
  --vm-auth-soft: #aeb5c2;
  --vm-auth-muted: #7f8797;
  --vm-auth-accent: #8f7cff;
  --vm-auth-accent-2: #5eead4;
  --vm-auth-border: rgba(255, 255, 255, 0.08);
}

html,
body {
  min-height: 100%;
}

body.vm-auth-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--vm-auth-bg);
  color: var(--vm-auth-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vm-auth-body::before,
.vm-auth-body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

.vm-auth-body::before {
  inset: -30px;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(5, 6, 10, 0.42), rgba(5, 6, 10, 0.66)),
    url("/assets/media/auth/bg11.webp");
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(1.06) brightness(1.08);
  opacity: 0.84;
  transform: scale(1.04);
}

.vm-auth-body::after {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(124, 77, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.06), rgba(8, 9, 13, 0.48));
}

.vm-auth-page {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 42px 20px;
}

.vm-auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.vm-auth-logo img {
  display: block;
  width: 174px;
  max-width: 58vw;
  height: auto;
}

.vm-auth-card {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--vm-auth-border);
  border-radius: 14px;
  background: var(--vm-auth-panel);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.34);
}

.vm-auth-root,
.vm-auth-copy,
.vm-auth-form {
  display: grid;
}

.vm-auth-root {
  gap: 14px;
}

.vm-auth-copy {
  gap: 6px;
  text-align: center;
}

.vm-auth-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.vm-auth-subtitle {
  margin: 0;
  color: var(--vm-auth-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.vm-auth-alert {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(251, 113, 133, 0.24);
  background: rgba(251, 113, 133, 0.1);
  color: #ffd9df;
  font-size: 0.9rem;
}

.vm-auth-alert.is-success {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.1);
  color: #c8f7df;
}

.vm-auth-google {
  display: grid;
  min-height: 44px;
  gap: 10px;
}

.vm-auth-google > div,
.vm-auth-google iframe {
  width: 100% !important;
}

.vm-auth-separator {
  position: relative;
  text-align: center;
  color: var(--vm-auth-muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vm-auth-separator::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--vm-auth-border);
}

.vm-auth-separator span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: var(--vm-auth-panel);
}

.vm-auth-form {
  gap: 11px;
}

.vm-auth-field {
  display: grid;
  gap: 6px;
}

.vm-auth-field span {
  color: #b9c0ce;
  font-size: 0.84rem;
}

.vm-auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--vm-auth-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--vm-auth-text);
  outline: none;
}

.vm-auth-field input:focus {
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.08);
}

.vm-auth-row,
.vm-auth-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.vm-auth-row {
  justify-content: center;
  margin-top: 2px;
}

.vm-auth-actions {
  margin-top: 4px;
}

.vm-auth-link {
  color: #a99bff;
  font-size: 0.88rem;
  font-weight: 600;
}

.vm-auth-link:hover {
  color: var(--vm-auth-accent-2);
}

.vm-auth-button {
  display: inline-flex;
  min-height: 46px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #9b6bff 0%, #7c4dff 55%, #6943ff 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(92, 59, 255, 0.32);
}

.vm-auth-button.is-secondary {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.vm-auth-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.vm-auth-reset-send-row {
  margin-top: -2px;
}

@media (max-width: 720px) {
  .vm-auth-page {
    justify-content: flex-start;
    gap: 24px;
    padding: 34px 18px 42px;
  }

  .vm-auth-logo img {
    width: 156px;
  }

  .vm-auth-card {
    width: 100%;
    padding: 24px;
  }

  .vm-auth-title {
    font-size: 2.15rem;
  }
}
