/* Modern Full-Page Login Design - Scoped to prevent Elementor conflicts */
.pixelcode-auth-wrapper {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Reset Elementor text styles within wrapper */
.pixelcode-auth-wrapper,
.pixelcode-auth-wrapper *,
.pixelcode-auth-wrapper *::before,
.pixelcode-auth-wrapper *::after {
  box-sizing: border-box;
}


.pixelcode-auth {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  position: relative;
  z-index: 1;
  animation: pixelcode-slideUp 0.6s ease-out;
}

@keyframes pixelcode-slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pixelcode-auth-tabs {
  display: inline-flex;
  background: rgba(241, 245, 249, 0.8);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 32px;
  gap: 4px;
  width: 100%;
  position: relative;
}

/* Reset button styles to prevent Elementor conflicts */
.pixelcode-auth-wrapper .pixelcode-auth-tab {
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  position: relative;
  z-index: 1;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-decoration: none;
  line-height: 1.5;
  outline: none;
}

.pixelcode-auth-wrapper .pixelcode-auth-tab:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
  border: none;
  outline: none;
}

.pixelcode-auth-wrapper .pixelcode-auth-tab.is-active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
  border: none;
  outline: none;
}

.pixelcode-auth-panels {
  position: relative;
  min-height: 400px;
}

.pixelcode-auth-panel {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(20px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pixelcode-auth-panel.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateX(0);
  pointer-events: auto;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pixelcode-auth-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

/* Reset heading styles */
.pixelcode-auth-wrapper .pixelcode-auth-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  color: transparent;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

.pixelcode-auth-wrapper .pixelcode-auth-card p {
  margin: 0 0 28px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pixelcode-auth-wrapper .pixelcode-auth-card label {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
  color: #0f172a;
  position: relative;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pixelcode-auth-wrapper .pixelcode-auth-card label span {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset input styles to prevent Elementor conflicts */
.pixelcode-auth-wrapper .pixelcode-auth-card input[type="text"],
.pixelcode-auth-wrapper .pixelcode-auth-card input[type="email"],
.pixelcode-auth-wrapper .pixelcode-auth-card input[type="password"] {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: block;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 1.5;
  text-align: left;
}

.pixelcode-auth-wrapper .pixelcode-auth-card input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: #ffffff;
  transform: translateY(-1px);
}

.pixelcode-auth-wrapper .pixelcode-auth-card input:hover {
  border-color: #cbd5e1;
}

.pixelcode-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pixelcode-auth-wrapper .pixelcode-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pixelcode-auth-wrapper .pixelcode-auth-remember:hover {
  color: #2563eb;
}

.pixelcode-auth-wrapper .pixelcode-auth-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
  border-radius: 4px;
  margin: 0;
  flex-shrink: 0;
  appearance: checkbox;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  display: inline-block;
  vertical-align: middle;
}

.pixelcode-auth-wrapper .pixelcode-auth-remember span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.5;
}

/* Reset button styles to prevent Elementor conflicts */
.pixelcode-auth-wrapper .pixelcode-auth-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 1.5;
  text-align: center;
  outline: none;
}

.pixelcode-auth-wrapper .pixelcode-auth-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.pixelcode-auth-wrapper .pixelcode-auth-button:hover::before {
  width: 300px;
  height: 300px;
}

.pixelcode-auth-wrapper .pixelcode-auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
  color: #ffffff;
  text-decoration: none;
  border: none;
  outline: none;
}

.pixelcode-auth-wrapper .pixelcode-auth-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  border: none;
  outline: none;
}

.pixelcode-auth-wrapper .pixelcode-auth-button--secondary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.pixelcode-auth-wrapper .pixelcode-auth-button--secondary:hover {
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5);
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  border: none;
  outline: none;
}

.pixelcode-auth-wrapper .pixelcode-auth-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pixelcode-auth-wrapper .pixelcode-auth-link:hover {
  color: #1d4ed8;
  transform: translateY(-1px);
  text-decoration: none;
}

.pixelcode-auth-wrapper .pixelcode-auth-alert {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
  animation: pixelcode-slideDown 0.3s ease-out;
  border: 2px solid transparent;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.pixelcode-auth-wrapper .pixelcode-auth-alert--error {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.9);
  border-color: rgba(239, 68, 68, 0.3);
}

.pixelcode-auth-wrapper .pixelcode-auth-alert--success {
  color: #0f766e;
  background: rgba(209, 250, 229, 0.9);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Responsive Design */
@media (max-width: 640px) {
  .pixelcode-auth-wrapper {
    padding: 20px;
    min-height: 100vh;
  }

  .pixelcode-auth {
    padding: 32px 24px;
    border-radius: 20px;
    max-width: 100%;
  }

  .pixelcode-auth-card {
    padding: 0;
  }

  .pixelcode-auth-wrapper .pixelcode-auth-card h2 {
    font-size: 20px;
  }

  .pixelcode-auth-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .pixelcode-auth-wrapper .pixelcode-auth-tab {
    font-size: 14px;
    padding: 10px 16px;
  }

  .pixelcode-auth-row {
    grid-template-columns: 1fr;
  }
}

/* Loading state for buttons */
.pixelcode-auth-wrapper .pixelcode-auth-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Focus visible for accessibility */
.pixelcode-auth-wrapper .pixelcode-auth-tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border: none;
}

.pixelcode-auth-wrapper .pixelcode-auth-button:focus-visible,
.pixelcode-auth-wrapper .pixelcode-auth-card input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.pixelcode-auth-wrapper .pixelcode-auth-tab,
.pixelcode-auth-wrapper .pixelcode-auth-button,
.pixelcode-auth-wrapper .pixelcode-auth-card input,
.pixelcode-auth-wrapper .pixelcode-auth-link {
  will-change: transform;
}

/* Input focus label animation */
.pixelcode-auth-wrapper .pixelcode-auth-card label.is-focused span {
  color: #2563eb;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Password strength indicator */
.pixelcode-auth-wrapper .pixelcode-auth-card input[type="password"]:valid {
  border-color: #10b981;
}

/* Enhanced card hover effect */
.pixelcode-auth-wrapper .pixelcode-auth-card:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Smooth scroll behavior */
.pixelcode-auth-wrapper {
  scroll-behavior: smooth;
}

/* Prevent layout shift */
.pixelcode-auth-panels {
  min-height: 400px;
}

/* Loading spinner animation */
@keyframes pixelcode-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Override Elementor global text styles within our wrapper */
.pixelcode-auth-wrapper p,
.pixelcode-auth-wrapper span,
.pixelcode-auth-wrapper div,
.pixelcode-auth-wrapper h1,
.pixelcode-auth-wrapper h2,
.pixelcode-auth-wrapper h3,
.pixelcode-auth-wrapper h4,
.pixelcode-auth-wrapper h5,
.pixelcode-auth-wrapper h6 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-align: left;
}

/* Prevent Elementor from affecting our buttons */
.pixelcode-auth-wrapper button.pixelcode-auth-tab,
.pixelcode-auth-wrapper button.pixelcode-auth-button {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

/* Prevent Elementor from affecting our inputs */
.pixelcode-auth-wrapper input.pixelcode-auth-card input {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

/* Prevent Elementor link styles */
.pixelcode-auth-wrapper a.pixelcode-auth-link {
  text-decoration: none;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
