:root {
  --auth-bg-gradient: linear-gradient(135deg, #1A1B2F 0%, #162444 50%, #111424 100%);
  --auth-accent: #3B82F6;
  --auth-accent-hover: #2563EB;
  --auth-glass-bg: rgba(255, 255, 255, 0.05);
  --auth-glass-border: rgba(255, 255, 255, 0.1);
  --auth-glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --auth-text: #F3F4F6;
  --auth-text-muted: #9CA3AF;
  --auth-input-bg: rgba(0, 0, 0, 0.2);
}

body.ww-auth-premium-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--auth-bg-gradient);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--auth-text);
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Orbs */
.ww-auth-premium-page::before,
.ww-auth-premium-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  animation: float 10s infinite alternate ease-in-out;
}

.ww-auth-premium-page::before {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.3);
  top: -100px;
  left: -100px;
}

.ww-auth-premium-page::after {
  width: 300px;
  height: 300px;
  background: rgba(147, 51, 234, 0.2);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Glass Container */
.auth-glass-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  margin: 2rem;
  background: var(--auth-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--auth-glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--auth-glass-shadow);
  transform: translateY(20px);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Larger container for registration */
.auth-glass-container.auth-glass-container--large {
  max-width: 800px;
}

@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}

/* Header */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  margin-bottom: 1.25rem;
}
.auth-logo img {
  max-width: 40px;
  max-height: 40px;
}
.auth-logo-icon {
  font-size: 2rem;
  color: #fff;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.auth-header p {
  color: var(--auth-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Forms */
.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #D1D5DB;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap i {
  position: absolute;
  left: 1rem;
  color: var(--auth-text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.2s;
}

.auth-input {
  width: 100%;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-glass-border);
  color: white;
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 3rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.auth-input:focus + i,
.auth-input-wrap:focus-within i {
  color: var(--auth-accent);
}

/* Password Toggle */
.auth-password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--auth-text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.auth-password-toggle:hover { color: white; }

/* Buttons */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--auth-accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
}

.auth-btn:hover {
  background: var(--auth-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

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

/* Links */
.auth-link {
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link:hover {
  color: white;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--auth-text-muted);
}

/* Captcha specific */
.auth-captcha-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--auth-glass-border);
}
.auth-captcha-img {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.auth-alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.auth-alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
}
.auth-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
}

/* Two-column layout for registration */
@media (min-width: 768px) {
  .auth-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
  }
  .auth-col-6 {
    width: 50%;
    padding: 0 0.75rem;
  }
  .auth-col-12 {
    width: 100%;
    padding: 0 0.75rem;
  }
}
