/* f:/restaurant-reservation-agent/public/css/login.css */

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #ffffff;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

h1, h2, h3, .left-headline, .form-header h2, .logo-text {
  font-family: 'Outfit', 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* SPLIT LAYOUT */
.login-split {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* LEFT PANEL */
.login-left {
  flex: 1.1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  overflow: hidden;
  background: #0a0a0f;
}

/* Animated gradient blob background */
.login-left::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: 
    radial-gradient(ellipse 600px 600px at 20% 30%, rgba(99, 102, 241, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 70% 70%, rgba(168, 85, 247, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 40% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  animation: ambientShift 18s ease-in-out infinite;
  z-index: 0;
}

@keyframes ambientShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(35px, -25px) rotate(1.5deg) scale(1.03); }
  50% { transform: translate(-25px, 35px) rotate(-1.5deg) scale(0.98); }
  75% { transform: translate(15px, 15px) rotate(0.8deg) scale(1.02); }
}

/* Grid pattern overlay */
.login-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.left-content {
  position: relative;
  z-index: 10;
  max-width: 520px;
}

/* Logo */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.logo-glow-wrap {
  position: relative;
  display: inline-flex;
}
.logo-glow-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #c084fc);
  opacity: 0.6;
  filter: blur(10px);
  animation: logoGlowPulse 3s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes logoGlowPulse {
  0% { opacity: 0.4; filter: blur(8px); }
  100% { opacity: 0.85; filter: blur(14px); }
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

/* Headline Shimmer */
.left-headline {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.left-headline .gradient-text {
  background: linear-gradient(90deg, #818cf8, #c084fc, #e879f9, #38bdf8, #818cf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 6s linear infinite;
}

@keyframes gradientShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.left-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  max-width: 460px;
  font-weight: 400;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Feature cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeSlideRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.feature-card:nth-child(1) { animation-delay: 0.5s; }
.feature-card:nth-child(2) { animation-delay: 0.6s; }
.feature-card:nth-child(3) { animation-delay: 0.7s; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateX(6px) translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.25);
}

.fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.feature-card:hover .fc-icon {
  transform: scale(1.1) rotate(4deg);
}

.fc-icon.indigo { background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25)); color: #818cf8; border: 1px solid rgba(129, 140, 248, 0.3); }
.fc-icon.violet { background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(232, 121, 249, 0.25)); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
.fc-icon.cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25)); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.fc-content-wrap {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fc-text-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.fc-text-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

.mini-soundwave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-left: 12px;
}
.ms-bar {
  width: 3px;
  background: #818cf8;
  border-radius: 3px;
  animation: miniWave 1s ease-in-out infinite alternate;
}
.ms-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.ms-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.ms-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.ms-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes miniWave {
  0% { height: 25%; }
  100% { height: 100%; }
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.stat-item {
  position: relative;
}

.stat-item .stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.stat-item .stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* RIGHT PANEL */
.login-right {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.floating-orb-1 {
  position: absolute;
  width: 380px;
  height: 380px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  animation: floatGlow1 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.floating-orb-2 {
  position: absolute;
  width: 420px;
  height: 420px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  animation: floatGlow2 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 50px) scale(1.15); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.12); }
}

.bg-float-icon {
  position: absolute;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 2;
  animation: floatIcon 8s ease-in-out infinite alternate;
}

.bg-float-icon svg { stroke-width: 2; }

.icon-float-1 { top: 12%; left: 10%; width: 54px; height: 54px; background: rgba(238, 242, 255, 0.85); color: #4f46e5; animation-delay: 0s; }
.icon-float-2 { top: 18%; right: 12%; width: 48px; height: 48px; background: rgba(236, 253, 245, 0.85); color: #10b981; animation-delay: 1.5s; }
.icon-float-3 { bottom: 15%; left: 8%; width: 50px; height: 50px; background: rgba(254, 243, 199, 0.85); color: #f59e0b; animation-delay: 3s; }
.icon-float-4 { bottom: 18%; right: 10%; width: 56px; height: 56px; background: rgba(253, 242, 248, 0.85); color: #ec4899; animation-delay: 4.5s; }

@keyframes floatIcon {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
  100% { transform: translateY(8px) rotate(-3deg); }
}

.bg-soundwave-bars {
  position: absolute;
  top: 60px;
  right: 80px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
  opacity: 0.25;
  pointer-events: none;
}
.bg-bar {
  width: 4px;
  background: linear-gradient(180deg, #4f46e5, #93c5fd);
  border-radius: 4px;
  animation: soundwave 1.2s ease-in-out infinite alternate;
}
.bg-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.bg-bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.bg-bar:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.bg-bar:nth-child(4) { height: 60%; animation-delay: 0.4s; }
.bg-bar:nth-child(5) { height: 90%; animation-delay: 0.15s; }

@keyframes soundwave {
  0% { height: 20%; }
  100% { height: 100%; }
}

.login-form-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 44px 40px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08), 0 0 30px rgba(99, 102, 241, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 10;
  animation: fadeScaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-header { margin-bottom: 32px; }
.form-header h2 { font-size: 2.1rem; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; margin-bottom: 8px; }
.form-header p { font-size: 0.9375rem; color: #64748b; font-weight: 500; }

.login-error {
  display: none;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
}

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.8125rem; font-weight: 700; color: #334155; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.field-input-wrap > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  transition: color 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.field-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 48px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: none;
}

.field-input-wrap input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.field-input-wrap input:focus ~ svg,
.field-input-wrap input:focus + svg {
  color: #6366f1;
}

#toggle-password {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px !important;
  border-radius: 6px !important;
  transition: color 0.2s ease !important;
  z-index: 5 !important;
}

#toggle-password:hover {
  color: #4f46e5 !important;
}

.btn-login {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3b82f6 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  transition: all 0.25s ease;
  margin-top: 8px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

@media (max-width: 1024px) {
  .login-left { display: none; }
  .login-right { flex: 1; }
  .login-form-wrapper { max-width: 440px; padding: 0 24px; }
}
