/* ============================================================
   login.css — Animated Premium Enterprise Login Page
   Theme: Lifting, Elevators, & Supply
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #F8FAFC; /* Light Creamy / Slate-50 background */
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ─── ANIMATED LIFTING BACKGROUND ─── */
.login-bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Blueprint Grid - REMOVED PER USER REQUEST */
.login-bg-shapes::before {
  display: none;
}

@keyframes scrollGrid {
  0% { transform: translateY(0); }
  100% { transform: translateY(50%); }
}

/* Vertical Elevator Shafts - Removed borders per user request */
.shaft {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
}
.shaft-1 { left: 15%; }
.shaft-2 { right: 15%; }
.shaft-3 { left: 50%; width: 160px; transform: translateX(-50%); border: none; }

/* Moving Elevator Cabs (Glowing Rectangles) */
.lift-car {
  position: absolute;
  width: 100%;
  height: 180px;
  border-radius: 8px;
  filter: blur(40px);
  opacity: 0.6;
}

.car-1 {
  background: rgba(232, 98, 28, 0.4); /* Tetra Orange */
  bottom: -200px;
  animation: liftUp 12s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.car-2 {
  background: rgba(74, 107, 58, 0.4); /* Pyramid Green */
  top: -200px;
  animation: liftDown 18s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.car-3 {
  background: rgba(245, 158, 11, 0.25); /* Amber */
  height: 250px;
  bottom: -300px;
  animation: liftUp 25s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate-reverse;
}

@keyframes liftUp {
  0% { transform: translateY(200px); }
  10% { transform: translateY(200px); }
  90% { transform: translateY(-110vh); }
  100% { transform: translateY(-110vh); }
}

@keyframes liftDown {
  0% { transform: translateY(-200px); }
  15% { transform: translateY(-200px); }
  85% { transform: translateY(110vh); }
  100% { transform: translateY(110vh); }
}

/* ─── MAIN LAYOUT ─── */
.login-layout {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── GLASSMORPHISM CARD ─── */
.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 32px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.06), 
              inset 0 1px 0 rgba(255,255,255,1);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* Logo */
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.main-logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

/* Segmented Tabs */
.segmented-tabs-wrapper {
  background: #F1F5F9;
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 36px;
  border: 1px solid #E2E8F0;
}
.login-tabs {
  display: flex;
  position: relative;
}
.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
  border-radius: 12px;
}
.tab-btn:hover { color: #0F172A; }
.tab-btn.active { color: #0F172A; }
.tab-indicator {
  position: absolute;
  top: 0; bottom: 0;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Tab Panes */
.tab-content-container {
  position: relative;
  flex: 1;
}
.tab-pane {
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-pane.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Form Styles */
.form-header { text-align: center; margin-bottom: 32px; }
.form-header h2 { font-size: 1.6rem; font-weight: 800; color: #0F172A; margin-bottom: 8px; letter-spacing: -0.02em; }
.form-header p { font-size: 0.95rem; color: #64748B; }

.login-form { display: flex; flex-direction: column; gap: 24px; }

.form-group label { margin-bottom: 10px; font-weight: 600; font-size: 0.85rem; color: #334155; display: block; }

/* Inputs */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 16px;
  color: #94A3B8;
  transition: color 0.3s;
  pointer-events: none;
}
.input-with-icon .form-input {
  padding-left: 48px;
}
.input-with-icon:focus-within .input-icon {
  color: #E8621C; /* Orange */
}

.form-input { 
  background: #FFFFFF; 
  border: 1px solid #E2E8F0; 
  border-radius: 14px; 
  padding: 16px;
  width: 100%;
  color: #0F172A;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}
.form-input::placeholder {
  color: #94A3B8;
}
.form-input:focus { 
  border-color: #E8621C; 
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(232, 98, 28, 0.15); 
  outline: none;
}

/* Password toggle */
.password-toggle {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #94A3B8; cursor: pointer;
  padding: 4px; display: flex; align-items: center; justify-content: center;
  transition: color 0.3s;
}
.password-toggle:hover { color: #0F172A; }

/* Remember Me */
.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}
.remember-me {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: #64748B; cursor: pointer;
}
.remember-me input {
  accent-color: #E8621C;
  width: 18px; height: 18px;
  cursor: pointer;
}
.forgot-pwd {
  font-size: 0.9rem; color: #E8621C; font-weight: 600; text-decoration: none;
}
.forgot-pwd:hover { text-decoration: underline; color: #F97316; }

/* Primary Button */
.btn-lg { 
  padding: 16px; font-size: 1.1rem; border-radius: 14px; font-weight: 700; 
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #E8621C 0%, #F97316 100%);
  color: white;
  box-shadow: 0 10px 25px rgba(232, 98, 28, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(232, 98, 28, 0.6);
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}
.btn-full { width: 100%; }

/* Inline Error */
.login-error-inline {
  color: #FDA4AF;
  font-size: 0.9rem;
  font-weight: 500;
  display: none; align-items: center; gap: 8px;
  background: rgba(225, 29, 72, 0.15);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(225, 29, 72, 0.3);
  animation: shake 0.4s ease;
}
.login-error-inline.show { display: flex; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ─── FLOATING STAT WIDGETS ─── */
.floating-widget {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #FFFFFF;
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  z-index: 5;
  color: #0F172A;
  animation: float 6s ease-in-out infinite;
}

.widget-1 { top: 12%; left: 8%; animation-delay: 0s; }
.widget-2 { top: 40%; left: 4%; animation-delay: 2s; }
.widget-3 { bottom: 15%; right: 8%; animation-delay: 4s; }
.widget-4 { top: 18%; right: 6%; animation-delay: 1.5s; }
.widget-5 { bottom: 18%; left: 10%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.widget-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.widget-value { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.widget-label { font-size: 0.75rem; color: #64748B; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ─── APP / WEB TABS ─── */
.app-install-box, .web-link-box {
  text-align: center;
  padding: 16px 0;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
}
.app-icon-wrapper {
  width: 90px; height: 90px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.app-icon-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.app-install-box h3, .web-link-box h3 { font-size: 1.5rem; font-weight: 800; color: #0F172A; margin: 0; }
.app-install-box p, .web-link-box p { font-size: 0.95rem; color: #64748B; line-height: 1.6; margin: 0; }

.web-icon {
  font-size: 4rem;
  color: #4A6B30;
  text-shadow: 0 10px 30px rgba(74, 107, 58, 0.2);
}
.btn-secondary {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
.login-page-footer {
  position: absolute;
  bottom: 32px; left: 32px; right: 32px;
  display: flex; justify-content: space-between;
  color: #94A3B8; font-size: 0.85rem; font-weight: 600;
  pointer-events: none;
  z-index: 10;
}

@media (max-width: 1024px) {
  .floating-widget { display: none; } /* Hide widgets on smaller screens */
}
@media (max-width: 640px) {
  .login-card { padding: 32px 24px; border-radius: 24px; }
  .login-page { padding: 16px; }
  .login-page-footer { bottom: 16px; left: 16px; right: 16px; flex-direction: column; align-items: center; gap: 8px; }
}
