/* ==========================================================================
   mXbyte — Pure Black Theme Split Login Experience
   ========================================================================== */

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #000000 !important;
  color: #ffffff !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Ambient Dark Background Glow Canvas
   -------------------------------------------------------------------------- */
.pure-dark-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: #000000;
}

.dark-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.18;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: -150px;
  left: 10%;
}

.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -180px;
  right: 10%;
}

.dark-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 95%);
}

/* --------------------------------------------------------------------------
   Master Page Grid / Flex Layout
   -------------------------------------------------------------------------- */
.auth-page-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  padding: 1.75rem;
  gap: 2.25rem;
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Left Column: Form Container
   -------------------------------------------------------------------------- */
.auth-left-col {
  flex: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
}

/* Back Link */
.top-nav-bar {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(-3px);
}

/* Role Switcher Tabs (User vs Admin) */
.auth-role-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 2rem;
  width: 100%;
}

.role-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-tab-btn:hover {
  color: #ffffff;
}

.role-tab-btn.active {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

/* Header Text */
.auth-header-block {
  margin-bottom: 2.25rem;
}

.welcome-heading {
  font-size: 2.75rem;
  font-weight: 900;
  color: #ffffff !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.welcome-subtext {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.55;
}

.brand-highlight {
  color: #ffffff;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Form Inputs & Controls (Black Theme)
   -------------------------------------------------------------------------- */
.clean-form {
  display: flex;
  flex-direction: column;
}

.input-group {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
}

.pill-input {
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.pill-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.pill-input:focus {
  border-color: #06b6d4;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

/* Password Input with eye toggle */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .pill-input {
  padding-right: 3.25rem;
}

.eye-toggle-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 50%;
  color: #94a3b8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.eye-toggle-btn:hover {
  opacity: 1;
  color: #ffffff;
}

.eye-toggle-btn svg {
  stroke: #94a3b8;
}

.eye-toggle-btn:hover svg {
  stroke: #ffffff;
}

.error-msg {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  padding-left: 1.25rem;
  min-height: 1rem;
}

/* Forgot Password Link */
.forgot-pass-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
  margin-bottom: 1.75rem;
}

.forgot-link {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

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

/* Solid White Action Button in Black Theme */
.black-pill-btn {
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.black-pill-btn:hover {
  background-color: #f1f5f9;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
}

.black-pill-btn:active {
  transform: translateY(0);
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.divider-row {
  display: flex;
  align-items: center;
  margin: 2.25rem 0 1.75rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.divider-text {
  padding: 0 1.25rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Social Login Icons (Dark Circles)
   -------------------------------------------------------------------------- */
.social-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.social-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.social-circle-btn:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #06b6d4;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25);
}

.social-circle-btn:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Right Column: Dark Luxury Frosted Showcase Card
   -------------------------------------------------------------------------- */
.auth-right-col {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 3.5rem);
}

.mint-showcase-card {
  width: 100%;
  background: linear-gradient(160deg, rgba(20, 20, 32, 0.88), rgba(10, 10, 18, 0.96));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 36px;
  padding: 3rem 2.5rem 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.illustration-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  position: relative;
  background: transparent !important;
}

.showcase-logo-img {
  width: 100%;
  max-width: 320px;
  max-height: 380px;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  user-select: none;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.showcase-bottom-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.dot.active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Slogan */
.showcase-slogan {
  font-size: 1.55rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 420px;
}

.brand-bold {
  font-weight: 900;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Modal Backdrop & Dialog (Pure Black)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background-color: #0e0e14;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.btn-submit-modal {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clean-toast {
  background: #0e0e14;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .auth-page-container {
    flex-direction: column;
    padding: 1.25rem;
  }

  .auth-left-col {
    padding: 1.5rem 0.5rem;
  }

  .auth-right-col {
    min-height: auto;
  }

  .mint-showcase-card {
    padding: 2.5rem 1.5rem;
  }
}
