@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --lx-bg-black: #030303;
  --lx-surface: #0a0a0a;
  --lx-gold: #D4AF37;
  --lx-gold-dim: rgba(212, 175, 55, 0.4);
  --lx-gold-glow: rgba(212, 175, 55, 0.15);
  --lx-platinum: #E5E4E2;
  --lx-ivory: #FDFBF7;
  --lx-text-muted: rgba(253, 251, 247, 0.5);
  --lx-border: rgba(255, 255, 255, 0.08);
  --lx-border-hover: rgba(212, 175, 55, 0.3);
  --lx-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  --lx-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --lx-focus-ring: 0 0 0 1px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.1);
}

:root[data-theme="light"] {
  --lx-bg-black: #F9F9F9;
  --lx-surface: #FFFFFF;
  --lx-ivory: #111111;
  --lx-text-muted: rgba(17, 17, 17, 0.6);
  --lx-border: rgba(0, 0, 0, 0.1);
  --lx-border-hover: rgba(212, 175, 55, 0.5);
  --lx-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  --lx-shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--lx-bg-black);
  color: var(--lx-ivory);
  overflow: hidden;
}

.luxury-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Left Side: Form Area */
.lx-left {
  flex: 0 0 45%;
  max-width: 650px;
  background: var(--lx-bg-black);
  display: flex;
  flex-direction: column;
  padding: 60px 80px;
  position: relative;
  z-index: 10;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.lx-left::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Right Side: Animated Visual Scene */
.lx-right {
  flex: 1;
  background-color: var(--lx-bg-black);
  position: relative;
  overflow: hidden;
}

#prestigeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.lx-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--lx-bg-black) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Left Side Content */
.lx-header {
  margin-bottom: auto;
}

.lx-logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.lx-logo-img:hover {
  opacity: 1;
}

.lx-main {
  margin-top: 60px;
  margin-bottom: auto;
  max-width: 420px;
}

.lx-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 8vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--lx-ivory);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.lx-subtitle {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--lx-text-muted);
  margin-bottom: 48px;
  letter-spacing: 0.2px;
}

/* Form Styles */
.lx-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lx-form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.lx-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lx-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lx-text-muted);
  transition: color 0.3s ease;
}

.lx-input-group:focus-within .lx-label {
  color: var(--lx-gold);
}

.lx-input {
  background: var(--lx-surface);
  border: 1px solid var(--lx-border);
  border-radius: 4px;
  color: var(--lx-ivory);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 16px 20px;
  outline: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.lx-input:focus {
  border-color: var(--lx-border-hover);
  box-shadow: var(--lx-focus-ring);
  background: var(--lx-bg-black);
}

.lx-input::placeholder {
  color: rgba(253, 251, 247, 0.15);
}

:root[data-theme="light"] .lx-input::placeholder {
  color: rgba(17, 17, 17, 0.3);
}

/* Buttons */
.lx-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 18px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.lx-btn-primary {
  background: var(--lx-gold);
  color: #000;
  margin-top: 16px;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.lx-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.lx-btn-primary:hover {
  background: #E8C547;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.25);
}

.lx-btn-primary:hover::before {
  left: 150%;
}

.lx-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--lx-text-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 8px 0;
}

.lx-divider::before,
.lx-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--lx-border);
}

.lx-divider::before {
  margin-right: 20px;
}

.lx-divider::after {
  margin-left: 20px;
}

.lx-btn-google {
  background: transparent;
  color: var(--lx-ivory);
  border: 1px solid var(--lx-border);
}

.lx-btn-google:hover {
  border-color: var(--lx-border-hover);
  background: rgba(253, 251, 247, 0.03);
  transform: translateY(-1px);
}

:root[data-theme="light"] .lx-btn-google:hover {
  background: rgba(17, 17, 17, 0.03);
}

.lx-btn-google img {
  width: 18px;
  height: 18px;
}

.lx-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--lx-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--lx-border);
  padding-top: 30px;
  letter-spacing: 0.5px;
}

.lx-footer a {
  color: var(--lx-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.lx-footer a:hover {
  color: var(--lx-gold);
}

/* Responsive */
@media (max-width: 1024px) {
  .lx-left {
    flex: 0 0 50%;
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  body, html {
    overflow: hidden;
    height: 100%;
  }
  .luxury-layout {
    display: block;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lx-left {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 40px 24px;
    box-shadow: none;
    overflow-y: visible;
    min-height: 100vh;
  }
  .lx-form-row {
    flex-direction: column;
    gap: 28px;
  }
  .lx-right {
    display: none;
  }
}

/* ─── TOAST NOTIFICATIONS ─── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: auto;
}
.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid var(--lx-gold); }
.toast.warning { border-left: 3px solid #f59e0b; }

@keyframes toast-in {
  0% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
