/* ============================================================
   login.css — Premium Tabbed Login Page
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  /* Beautiful soft sky-to-sand gradient */
  background: linear-gradient(180deg, #F0F6F9 0%, #FAF1EB 45%, #FCE3CD 70%, #F5BA96 100%);
}

/* (Removed the grid texture and radial gradients to achieve the clean look) */

/* Decoration Image */
.login-decoration {
  position: fixed;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.deco-pyramid {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* Glassmorphism Card */
.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06), 
              inset 0 0 0 1px rgba(255,255,255,0.5);
  position: relative;
  z-index: 2;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Logo */
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.main-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Custom Tabs */
.login-tabs {
  display: flex;
  position: relative;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--tetra-orange); }

.tab-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--tetra-orange);
  border-radius: 2px 2px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab Panes */
.tab-content-container {
  position: relative;
  min-height: 280px;
}
.tab-pane {
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.4s 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: 24px; }
.form-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.form-header p { font-size: 0.9rem; color: var(--text-muted); }

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

.form-group label { margin-bottom: 8px; font-weight: 600; font-size: 0.85rem; }
.form-input { 
  background: #fff; 
  border: 1.5px solid #E2E8F0; 
  border-radius: 12px; 
  padding: 12px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01) inset;
}
.form-input:focus { border-color: var(--tetra-orange); box-shadow: 0 0 0 4px rgba(232,98,28,0.1); }

/* Password toggle */
.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 44px; width: 100%; }
.password-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  padding: 4px; font-size: 1rem;
}
.password-toggle:hover { color: var(--tetra-orange); }

/* Error box */
.login-error {
  background: rgba(244,63,94,0.08);
  border: 1px solid rgba(244,63,94,0.3);
  color: #BE123C;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  display: none; align-items: center; gap: 10px;
  animation: shake 0.4s ease;
}
.login-error.show { display: flex; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.btn-lg { padding: 14px; font-size: 1.05rem; border-radius: 12px; font-weight: 700; }

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.login-footer span { color: var(--text-primary); font-weight: 700; }

/* ─── APP TAB STYLES ─── */
.app-install-box {
  text-align: center;
  padding: 10px 0;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.app-icon-wrapper {
  width: 80px; height: 80px;
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 4px;
}
.app-icon-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.app-install-box h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.app-install-box p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }

.install-pulse {
  animation: gentlePulse 2s infinite;
}
@keyframes gentlePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px var(--tetra-orange-glow); }
  50% { transform: scale(1.02); box-shadow: 0 8px 20px var(--tetra-orange-glow); }
}

.ios-instruction {
  background: #F1F5F9;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border: 1px dashed #CBD5E1;
}

/* ─── WEB TAB STYLES ─── */
.web-link-box {
  text-align: center;
  padding: 10px 0;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.web-icon {
  font-size: 3.5rem;
  color: var(--pyramid-green);
  text-shadow: 0 10px 20px rgba(74,107,58,0.2);
  margin-bottom: 4px;
}
.web-link-box h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.web-link-box p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 640px) {
  .login-card { padding: 32px 24px; border-radius: 20px; }
  .login-decoration { display: none; }
}

