/* ============================================
   AUTH PAGE - Cortex Studios
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

/* Animação de fundo */
.auth-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 127, 0.1) 0%, transparent 50%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(20px, 20px) scale(1.1);
    opacity: 0.8;
  }
}

/* Layout Split */
.auth-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.auth-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  color: white;
  position: relative;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 255, 127, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.brand-content {
  position: relative;
  text-align: center;
  max-width: 500px;
}

/* Logo Cortex Studios */
.cortex-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cortex-logo svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 127, 0.6));
}

.brand-name {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #00FF7F 50%, #fff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.brand-tagline {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 127, 0.2);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(0, 255, 127, 0.1);
  border-color: var(--accent);
  transform: translateX(10px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.4);
}

.feature-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
}

.feature-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Auth Form Section */
.auth-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: white;
  position: relative;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 450px;
  animation: slideIn 0.5s ease;
}

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

.auth-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.auth-form-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Forms */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  background: white;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 255, 127, 0.1);
}

.form-input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-checkbox label {
  margin: 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.form-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Buttons */
.auth-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 14px rgba(0, 255, 127, 0.3);
}

.auth-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 127, 0.4);
}

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

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  padding: 0.875rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-btn:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 127, 0.05);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Demo Credentials */
.demo-credentials {
  background: rgba(0, 255, 127, 0.05);
  border: 2px dashed var(--accent);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.demo-credentials h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-credentials p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.25rem 0;
  font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 1024px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-brand {
    padding: 3rem 2rem;
  }

  .brand-name {
    font-size: 2.5rem;
  }

  .brand-tagline {
    font-size: 1.25rem;
  }

  .auth-form-section {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 1rem;
  }

  .auth-brand {
    padding: 2rem 1rem;
  }

  .brand-name {
    font-size: 2rem;
  }

  .brand-tagline {
    font-size: 1.125rem;
  }

  .cortex-logo svg {
    width: 60px;
    height: 60px;
  }

  .feature-item {
    padding: 0.75rem;
  }

  .social-login {
    flex-direction: column;
  }
}

/* Loading State */
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
