@use "../../../styles/mixins.scss";

// Premium Auth Layout - Sophisticated design for events industry
.authLayout {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.splitLayout {
  flex: 1;
  display: flex;
  position: relative;
  min-height: 100vh;
}

// Left Panel - Form area with subtle background
.leftPanel {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(135deg, #fafafa 0%, var(--hi-color-gray) 50%, #faf8fc 100%);
  overflow-y: auto;
  z-index: 2;

  @include mixins.respond-below(md) {
    width: 100%;
  }
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem;
  min-height: 100vh;

  @include mixins.respond-below(md) {
    min-height: auto;
    justify-content: flex-start;
    padding: 3rem 1.5rem 2rem;
  }

  @include mixins.respond-below(sm) {
    padding: 2rem 1rem 1.5rem;
  }
}

.logo {
  margin-bottom: 1.5rem;

  @include mixins.respond-below(md) {
    margin-bottom: 1.25rem;
  }

  @include mixins.respond-below(sm) {
    margin-bottom: 1rem;
  }

  img {
    height: 110px;
    width: auto;

    @include mixins.respond-below(md) {
      height: 100px;
    }

    @include mixins.respond-below(sm) {
      height: 90px;
    }
  }
}

.wrapper {
  width: 100%;
  max-width: 480px;

  @include mixins.respond-below(sm) {
    max-width: 100%;
  }

  a {
    color: var(--mantine-color-secondary-5);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;

    &:hover {
      color: var(--mantine-color-secondary-7);
      text-decoration: underline;
    }
  }

  footer {
    font-size: 0.875rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--hi-color-gray-dark);
    line-height: 1.6;

    a {
      font-weight: 500;
    }
  }

  .languageSwitcher {
    max-width: 100px;
    margin: 1.5rem auto 0;
  }
}

// Right Panel - Premium visual with background image
.rightPanel {
  width: 55%;
  max-width: 700px;
  position: relative;
  overflow: hidden;

  @include mixins.respond-below(lg) {
    width: 45%;
  }

  @include mixins.respond-below(md) {
    display: none;
  }
}

.backgroundImage {
  position: absolute;
  inset: 0;
  background-image: url("/images/backgrounds/nightlife-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(20%);
}

.backgroundOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--mantine-color-primary-9) 0%,
    var(--mantine-color-primary-8) 30%,
    var(--mantine-color-primary-6) 60%,
    var(--mantine-color-secondary-5) 100%
  );
  opacity: 0.92;
}

// Grid pattern overlay
.gridPattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

// Subtle glow effects
.glowEffect {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.glowTop {
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
}

.glowBottom {
  bottom: -100px;
  left: -50px;
  width: 350px;
  height: 350px;
  background: var(--mantine-color-secondary-3);
  opacity: 0.2;
}

.overlay {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  z-index: 1;

  @include mixins.respond-below(lg) {
    padding: 2rem;
  }
}

.content {
  max-width: 400px;
  width: 100%;

  @include mixins.respond-below(lg) {
    max-width: 340px;
  }
}

// Badge at top
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: white;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);

  @include mixins.respond-below(lg) {
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.875rem;
  }

  svg {
    width: 14px;
    height: 14px;
    opacity: 0.9;
  }
}

// Feature grid
.featureGrid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  @include mixins.respond-below(lg) {
    gap: 0.5rem;
  }
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: default;

  @include mixins.respond-below(lg) {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  &:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
  }
}

.featureIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: white;

  @include mixins.respond-below(lg) {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  svg {
    width: 18px;
    height: 18px;

    @include mixins.respond-below(lg) {
      width: 16px;
      height: 16px;
    }
  }
}

.featureText {
  flex: 1;
  min-width: 0;

  h3 {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    letter-spacing: -0.01em;

    @include mixins.respond-below(lg) {
      font-size: 0.875rem;
    }
  }

  p {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;

    @include mixins.respond-below(lg) {
      font-size: 0.75rem;
    }
  }
}
