/* ===== BEATZZ AUTH STYLES ===== */

:root {
  --beatzz-primary: #ff3158;
  --beatzz-bg: #090b13;
  --beatzz-surface: #0f1220;
  --beatzz-surface-light: rgba(255,255,255,0.05);
  --beatzz-text: #ecf2ff;
  --beatzz-text-muted: #a7afc6;
  --beatzz-border: rgba(255,255,255,0.1);
  --beatzz-radius: 16px;
  --beatzz-glow: 0 10px 40px rgba(255,49,88,0.25);
  --beatzz-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Video Background */
.beatzz-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.beatzz-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.3);
}

/* Auth Wrapper */
.beatzz-auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}

.beatzz-auth-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255,49,88,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Auth Container */
.beatzz-auth-container {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, rgba(15,18,32,0.95) 0%, rgba(9,11,19,0.98) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--beatzz-border);
  border-radius: var(--beatzz-radius);
  box-shadow: var(--beatzz-shadow);
  overflow: hidden;
  position: relative;
}

.beatzz-auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--beatzz-primary), #ff6b8a, var(--beatzz-primary));
  opacity: 0.8;
}

/* Logo */
.beatzz-auth-logo {
  text-align: center;
  padding: 2rem 2rem 1rem;
}

.beatzz-auth-logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(255,49,88,0.3));
}

/* Tab Navigation */
.beatzz-auth-tabs {
  display: flex;
  margin: 0 2rem 1.5rem;
  background: var(--beatzz-surface);
  border-radius: 12px;
  padding: 4px;
  position: relative;
}

.beatzz-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--beatzz-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  z-index: 1;
}

.beatzz-tab:hover {
  color: var(--beatzz-text);
  background: rgba(255,255,255,0.05);
}

.beatzz-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--beatzz-primary) 0%, #d92a4d 100%);
  box-shadow: 0 4px 12px rgba(255,49,88,0.3);
}

.beatzz-tab span:first-child {
  font-size: 1.1rem;
}

/* Auth Content */
.beatzz-auth-content {
  padding: 0 2rem 2rem;
}

/* Alert Messages */
.beatzz-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.beatzz-alert-error {
  background: linear-gradient(135deg, rgba(220,53,69,0.1) 0%, rgba(220,53,69,0.05) 100%);
  border: 1px solid rgba(220,53,69,0.2);
  color: #ff6b6b;
}

.beatzz-alert-success {
  background: linear-gradient(135deg, rgba(40,167,69,0.1) 0%, rgba(40,167,69,0.05) 100%);
  border: 1px solid rgba(40,167,69,0.2);
  color: #51cf66;
}

.beatzz-alert-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.beatzz-alert-close:hover {
  opacity: 1;
}

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

/* Form Container */
.beatzz-form-container {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.beatzz-form-container.active {
  display: block;
}

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

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

.beatzz-form-header h2 {
  color: var(--beatzz-text);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.beatzz-form-header p {
  color: var(--beatzz-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Form */
.beatzz-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Input Groups */
.beatzz-input-group {
  position: relative;
}

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

.beatzz-input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.beatzz-input-wrapper.focused .beatzz-input-icon {
  opacity: 1;
}

.beatzz-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--beatzz-surface);
  border: 1px solid var(--beatzz-border);
  border-radius: 12px;
  color: var(--beatzz-text);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  outline: none;
}

.beatzz-input::placeholder {
  color: transparent;
}

.beatzz-input:focus {
  border-color: var(--beatzz-primary);
  box-shadow: 0 0 0 3px rgba(255,49,88,0.1);
  background: rgba(255,255,255,0.02);
}

.beatzz-label {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--beatzz-text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  background: transparent;
  padding: 0 0.25rem;
}

.beatzz-input:focus + .beatzz-label,
.beatzz-input-wrapper.focused .beatzz-label {
  top: -0.5rem;
  left: 2.5rem;
  font-size: 0.75rem;
  color: var(--beatzz-primary);
  background: var(--beatzz-surface);
}

/* Error Messages */
.beatzz-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding-left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.beatzz-error::before {
  content: '⚠️';
  font-size: 0.9rem;
}

/* Button */
.beatzz-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.beatzz-btn-primary {
  background: linear-gradient(135deg, var(--beatzz-primary) 0%, #d92a4d 100%);
  color: #fff;
  box-shadow: var(--beatzz-glow);
}

.beatzz-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(255,49,88,0.4);
}

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

.beatzz-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.beatzz-btn:hover::before {
  left: 100%;
}

.beatzz-btn-icon {
  font-size: 1.1rem;
}

.beatzz-btn-text {
  position: relative;
  z-index: 1;
}

/* Footer */
.beatzz-auth-footer {
  text-align: center;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--beatzz-border);
  margin-top: 1rem;
}

.beatzz-auth-footer p {
  color: var(--beatzz-text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.beatzz-auth-footer strong {
  color: var(--beatzz-primary);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .beatzz-auth-wrapper {
    padding: 1rem 0.5rem;
  }
  
  .beatzz-auth-container {
    max-width: 100%;
  }
  
  .beatzz-auth-logo {
    padding: 1.5rem 1.5rem 0.75rem;
  }
  
  .beatzz-auth-logo img {
    height: 50px;
  }
  
  .beatzz-auth-tabs {
    margin: 0 1.5rem 1rem;
  }
  
  .beatzz-tab {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .beatzz-auth-content {
    padding: 0 1.5rem 1.5rem;
  }
  
  .beatzz-form-header h2 {
    font-size: 1.3rem;
  }
  
  .beatzz-input {
    padding: 0.9rem 0.9rem 0.9rem 2.75rem;
  }
  
  .beatzz-input-icon {
    left: 0.9rem;
    font-size: 1rem;
  }
  
  .beatzz-label {
    left: 2.75rem;
    font-size: 0.95rem;
  }
  
  .beatzz-input:focus + .beatzz-label,
  .beatzz-input-wrapper.focused .beatzz-label {
    left: 2.25rem;
    font-size: 0.7rem;
  }
  
  .beatzz-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .beatzz-auth-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
  .beatzz-auth-container {
    background: linear-gradient(145deg, rgba(15,18,32,0.98) 0%, rgba(9,11,19,0.99) 100%);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators for keyboard navigation */
.beatzz-tab:focus-visible,
.beatzz-input:focus-visible,
.beatzz-btn:focus-visible {
  outline: 2px solid var(--beatzz-primary);
  outline-offset: 2px;
}
