/* ==========================================================================
   PayVST - Modern Dark Glassmorphic Auth Pages Stylesheet
   Matches Landing Page Design System
   ========================================================================== */

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(18, 24, 38, 0.78);
  --bg-card-hover: rgba(26, 35, 54, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);
  
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.auth-body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding: 30px 16px;
}

/* Ambient Background Glows */
.auth-bg-glow-1, .auth-bg-glow-2, .auth-bg-glow-3 {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.auth-bg-glow-1 {
  top: -150px;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
}

.auth-bg-glow-2 {
  bottom: -150px;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
}

.auth-bg-glow-3 {
  top: 40%;
  left: -200px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Auth Wrapper & Container */
.auth-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
}

.auth-card.wide {
  max-width: 500px;
}

@media (max-width: 576px) {
  body.auth-body {
    padding: 16px 12px;
  }
  .auth-card {
    padding: 26px 20px;
    border-radius: 18px;
  }
}

/* Header & Brand */
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  text-decoration: none;
}

.auth-brand-logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.35));
  transition: var(--transition);
}

.auth-brand-logo:hover img {
  transform: scale(1.04);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 70%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  margin-bottom: 12px;
}

.badge-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Form Fields */
.auth-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 8px;
}

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

.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: #ffffff;
  transition: var(--transition);
  outline: none;
}

.auth-input::placeholder {
  color: #6b7280;
}

.auth-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.25);
}

/* Password Toggle Icon */
.auth-password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 2;
}

.auth-password-toggle:hover {
  color: #ffffff;
}

.auth-password-toggle i {
  font-size: 1.2rem;
}

.auth-input-has-toggle {
  padding-right: 48px;
}

/* Flex Row & Links */
.auth-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.875rem;
}

.auth-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.auth-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Buttons */
.auth-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 0.975rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
  filter: brightness(1.1);
  color: #ffffff;
}

.auth-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 0.925rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.auth-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.auth-btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Checkbox */
.auth-checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-checkbox-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Divider & Footer Note */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 14px;
}

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

/* ReCAPTCHA Wrapper */
.auth-recaptcha-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 16px 0;
}

/* Alerts */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
