/* Auth Pages Styles */

.auth-container {
  min-height: 100vh;
  display: flex;
}

.auth-card {
  flex: 1;
  max-width: 500px;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  margin-bottom: 40px;
}

.auth-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-form {
  margin-bottom: 24px;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.input-with-prefix:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-prefix {
  padding: 14px 0 14px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  background: var(--background-tertiary);
  border-right: 1px solid var(--border);
  padding-right: 12px;
}

.input-with-prefix .form-input {
  border: none;
  background: transparent;
  padding-left: 12px;
}

.input-with-prefix .form-input:focus {
  box-shadow: none;
}

.username-status {
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 20px;
}

.username-status.available {
  color: var(--success);
}

.username-status.taken {
  color: var(--error);
}

.username-status.checking {
  color: var(--text-muted);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.forgot-link {
  color: var(--primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn .btn-loading {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-footer p {
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-terms {
  margin-top: 24px;
  text-align: center;
}

.auth-terms p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-terms a {
  color: var(--text-secondary);
}

.auth-terms a:hover {
  color: var(--text);
}

/* Auth Visual Panel */
.auth-visual {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.auth-visual::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
}

.visual-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
  color: white;
}

.visual-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.visual-content > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.visual-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visual-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.visual-feature span {
  width: 28px;
  height: 28px;
  background: rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Visual Stats (Login page) */
.visual-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visual-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-icon {
  font-size: 2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 968px) {
  .auth-container {
    flex-direction: column;
  }
  
  .auth-card {
    max-width: none;
    padding: 40px 24px;
  }
  
  .auth-visual {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-header h1 {
    font-size: 1.75rem;
  }
  
  .input-prefix {
    font-size: 0.8rem;
    padding: 12px 8px 12px 12px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
