:root {
  --vmh-bg: #000000;
  --vmh-surface: rgba(10, 10, 10, 0.9);
  --vmh-surface-hover: rgba(14, 14, 14, 0.95);

  --vmh-primary: #ffffff;
  --vmh-primary-dark: #e5e5e5;
  --vmh-secondary: #a1a1aa;
  --vmh-gradient: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  --vmh-gradient-soft: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(161,161,170,0.08) 100%);

  --vmh-glow: rgba(255, 255, 255, 0.08);
  --vmh-glow-strong: rgba(255, 255, 255, 0.15);

  --vmh-border: rgba(255, 255, 255, 0.06);
  --vmh-border-hover: rgba(255, 255, 255, 0.1);
  --vmh-border-focus: rgba(255, 255, 255, 0.25);

  --vmh-text: rgba(255, 255, 255, 0.95);
  --vmh-text-secondary: rgba(255, 255, 255, 0.6);
  --vmh-text-muted: rgba(255, 255, 255, 0.35);

  --vmh-error: #ef4444;
  --vmh-error-bg: rgba(239, 68, 68, 0.1);
  --vmh-success: #22c55e;

  --vmh-radius: 14px;
  --vmh-radius-sm: 10px;
  --vmh-radius-lg: 20px;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  background-color: var(--vmh-bg);
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: subtleGlow 15s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.auth-page > .container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  padding: 40px;
  position: relative;
  background: var(--vmh-surface);
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
  border: 1px solid var(--vmh-border);
  border-radius: var(--vmh-radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 80px var(--vmh-glow);
  transition: box-shadow 0.4s ease;
}

.auth-card:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 100px var(--vmh-glow-strong);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.card.auth-card::after {
  display: none !important;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.auth-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.25);
}

.auth-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  position: relative;
}

.auth-logo::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.auth-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--vmh-text);
  letter-spacing: -0.02em;
}

.auth-brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: #c9a227;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--vmh-text);
  margin: 0 0 8px 0;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--vmh-text-secondary);
  margin: 0;
}

.auth-title-separator {
  display: none;
}

.btn--discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: #5865F2;
  border: none;
  border-radius: var(--vmh-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.btn--discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.35);
}

.btn--discord:active {
  transform: translateY(0);
}

.btn--discord svg,
.btn--discord .discord-icon {
  width: 20px;
  height: 20px;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--vmh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vmh-border);
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form.stack {
  gap: 0;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field:last-of-type {
  margin-bottom: 0;
}

.field-label,
.auth-form .field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--vmh-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  margin-top: 16px;
}

.auth-form.stack > .field-label:first-child,
.auth-field:first-child .field-label {
  margin-top: 0;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="url"],
.auth-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--vmh-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vmh-border);
  border-radius: var(--vmh-radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

.auth-form input::placeholder {
  color: var(--vmh-text-muted);
}

.auth-form input:hover:not(:focus) {
  border-color: var(--vmh-border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.auth-form input:focus {
  border-color: var(--vmh-border-focus);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.btn--primary,
.auth-btn-full.btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  background: #ffffff;
  border: none;
  border-radius: var(--vmh-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  margin-top: 20px;
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn--primary:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.85);
}

.btn--secondary,
.auth-btn-full.btn--secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vmh-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vmh-border);
  border-radius: var(--vmh-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-top: 0;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--vmh-border-hover);
  color: var(--vmh-text);
}

.auth-btn-full {
  width: 100%;
  margin-top: 0;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--vmh-error);
  background: var(--vmh-error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--vmh-radius-sm);
}

.auth-error::before {
  content: "!";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: 700;
  background: var(--vmh-error);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--vmh-text-muted);
}

.auth-footer a,
.auth-link {
  color: var(--vmh-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-footer a:hover,
.auth-link:hover {
  color: var(--vmh-text-secondary);
}

.auth-credentials-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--vmh-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-credentials-link:hover {
  color: var(--vmh-text-secondary);
}

@media (max-width: 480px) {
  .auth-page {
    padding: 16px;
    align-items: flex-start;
    padding-top: 48px;
  }

  .auth-card {
    padding: 28px 24px;
    border-radius: var(--vmh-radius);
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-logo {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .auth-brand-name {
    font-size: 18px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  animation: fadeIn 0.4s ease-out;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--vmh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vmh-border);
}

.auth-footer-text {
  margin: 0 0 16px 0;
  color: var(--vmh-text-secondary);
}

.auth-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--vmh-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-help-link:hover {
  color: var(--vmh-text);
}

.auth-help-link i {
  font-size: 14px;
}

.auth-field-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0 0;
  font-size: 12px;
  color: var(--vmh-text-muted);
}

.auth-field-hint i {
  font-size: 12px;
  color: var(--vmh-text-muted);
}

.btn--primary i,
.btn--discord i {
  font-size: 16px;
}

.btn--primary {
  gap: 8px;
}