/* ── Entry Page CSS (index.php + login.php shared) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e8f5e9 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Page wrapper ── */
.entry-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 62px 16px 12px; /* 52px header + 10px gap */
}

.entry-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,61,106,0.12);
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  display: flex;
}

/* ── Left panel ── */
.entry-left {
  background: linear-gradient(160deg, #003d6a 0%, #005a9c 100%);
  padding: 22px 28px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: white;
}

/* Brand — centered */
.entry-left .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.entry-left .brand img {
  height: 36px;
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
}
.entry-left .brand span {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

/* Tagline */
.entry-left h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  color: white;
  text-align: center;
}
.entry-left .tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Feature badges — 2x3 grid, equal size */
.feature-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: auto 0; /* vertically centered between tagline and trust strip */
}
.feature-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  transition: background 0.2s;
}
.feature-badge:hover {
  background: rgba(255,255,255,0.14);
}
.feature-badge i {
  font-size: 1rem;
  color: #7dd3fc;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.feature-badge span {
  line-height: 1.3;
}

/* Bottom trust + links strip */
.left-footer-strip {
  margin: 14px -28px 0 -28px;
  padding: 9px 20px;
  background: rgba(0,0,0,0.22);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Trust badges row */
.lfs-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.trust-item i { color: #6ee7b7; font-size: 0.75rem; }
.lfs-sep { color: rgba(255,255,255,0.2); font-size: 0.65rem; }

/* Links row */
.lfs-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  flex-wrap: wrap;
}
.lfs-links a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  font-weight: 500;
}
.lfs-links a:hover { color: #7dd3fc; }
.lfs-links .sep { color: rgba(255,255,255,0.18); font-size: 0.65rem; }

/* ── Right panel ── */
.entry-right {
  padding: 22px 24px 18px;
  flex: 0 0 355px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.entry-right-top { flex: 1; }

.entry-right h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}
.entry-right .sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 14px;
}

/* ── Form elements ── */
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  display: block;
}

.input-with-prefix {
  display: flex;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-with-prefix:focus-within {
  border-color: #003d6a;
  box-shadow: 0 0 0 3px rgba(0,61,106,0.08);
}
.input-prefix {
  background: #f9fafb;
  padding: 11px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  border-right: 2px solid #e5e7eb;
  white-space: nowrap;
}
.input-with-prefix input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 10px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
}

.pw-wrap { position: relative; }
.pw-wrap input {
  width: 100%;
  padding: 11px 36px 11px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pw-wrap input:focus {
  border-color: #003d6a;
  box-shadow: 0 0 0 3px rgba(0,61,106,0.08);
}
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.pw-toggle:hover { color: #003d6a; }

/* ── Tabs ── */
.entry-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 12px;
}
.entry-tab-btn {
  flex: 1;
  padding: 7px 4px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.etab-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  transition: color 0.2s;
  line-height: 1.2;
}
.etab-micro {
  font-size: 0.68rem;
  font-weight: 400;
  color: #9ca3af;
  transition: color 0.2s;
  line-height: 1.2;
}
.entry-tab-btn.active { border-bottom-color: #c1272d; }
.entry-tab-btn.active .etab-label { color: #003d6a; }
.entry-tab-btn.active .etab-micro  { color: #c1272d; }
.entry-tab-btn:hover .etab-label   { color: #003d6a; }
.entry-tab-btn:hover .etab-micro   { color: #6b7280; }
.entry-tab-pane { display: none; }
.entry-tab-pane.active { display: block; animation: etabFade 0.2s; }
@keyframes etabFade { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }

/* ── Remember me row ── */
.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 8px;
  font-size: 0.78rem;
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  cursor: pointer;
}
.forgot-link-inline {
  font-size: 0.78rem;
  color: #c1272d;
  text-decoration: none;
  font-weight: 500;
}
.forgot-link-inline:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn-login {
  width: 100%;
  padding: 13px;
  min-height: 46px;
  background: linear-gradient(135deg, #c1272d, #a01f24);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  margin-top: 6px;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,39,45,0.35);
}
.btn-login:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Free trial button — bottom of right panel */
.entry-right-bottom {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}

/* New user separator */
.new-user-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: #9ca3af;
}
.new-user-divider::before,
.new-user-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.new-user-divider span {
  white-space: nowrap;
  font-weight: 500;
}
.btn-signup-link {
  display: block;
  text-align: center;
  padding: 13px;
  min-height: 46px;
  background: linear-gradient(135deg, #003d6a, #005a9c);
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-signup-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,61,106,0.35);
  color: white;
}
.entry-right-bottom .hint {
  text-align: center;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 6px;
}

/* ── OTP ── */
.otp-hint-bar {
  display: none;
  margin-top: 6px;
  padding: 5px 10px;
  background: #f0f9ff;
  border-left: 3px solid #003d6a;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #1f2937;
}
.otp-hint-bar .otp-link {
  color: #c1272d;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.otp-input-wrap { display: none; }
.otp-input-wrap input {
  width: 100%;
  padding: 12px;
  min-height: 46px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1.1rem;
  letter-spacing: 0.3rem;
  text-align: center;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.otp-input-wrap input:focus { border-color: #003d6a; }

/* ── Messages ── */
.form-msg {
  display: none;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.form-msg.success { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.form-msg.error   { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }

.val-error {
  margin-top: 6px;
  padding: 6px 10px;
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  border-radius: 5px;
  font-size: 0.75rem;
  color: #991b1b;
  display: none;
}

/* ── Trust Bar ── */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}
.trust-bar span {
  font-size: 0.7rem;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.trust-bar span i {
  font-size: 0.72rem;
}
.trust-bar span:nth-child(1) i { color: #10b981; } /* green  — secure  */
.trust-bar span:nth-child(2) i { color: #f97316; } /* orange — India   */
.trust-bar span:nth-child(3) i { color: #3b82f6; } /* blue   — speed   */

/* ── Divider (removed, replaced by entry-right-bottom) ── */
.divider { display: none; }

/* ── Footer ── */
.entry-footer {
  text-align: center;
  padding: 10px;
  font-size: 0.75rem;
  color: #9ca3af;
}
.entry-footer a { color: #6b7280; text-decoration: none; }
.entry-footer a:hover { color: #003d6a; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .entry-wrap {
    padding: 62px 0 0; /* full width on mobile, no side padding */
    align-items: flex-start;
  }
  .entry-card {
    flex-direction: column-reverse; /* form (right) comes FIRST on mobile */
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    min-height: calc(100vh - 52px);
  }

  /* Right panel (form) — full width, shown first */
  .entry-right {
    flex: none;
    padding: 22px 20px 18px;
    border-bottom: 3px solid #f3f4f6;
  }

  /* Left panel (branding) — compact strip at bottom */
  .entry-left {
    padding: 16px 20px 0;
    background: linear-gradient(160deg, #003d6a 0%, #004f87 100%);
  }
  .entry-left .brand {
    margin-bottom: 10px;
    padding-bottom: 10px;
    justify-content: flex-start; /* left-align on mobile */
  }
  .entry-left .brand img { height: 28px; }
  .entry-left .brand span { font-size: 1.2rem; }
  .entry-left h2 { font-size: 0.92rem; text-align: left; }
  .entry-left .tagline { font-size: 0.76rem; margin-bottom: 10px; text-align: left; }

  /* Hide feature badges on mobile — saves space */
  .feature-badges { display: none; }

  /* Footer strip — simplified on mobile */
  .left-footer-strip { margin: 0 -20px; padding: 8px 16px; }
  .lfs-trust { gap: 8px; margin-bottom: 4px; }
  .trust-item { font-size: 0.68rem; }
  .lfs-links a { font-size: 0.68rem; }
}

@media (max-width: 400px) {
  .entry-right { padding: 16px 16px 14px; }
  .left-footer-strip { padding: 8px 12px; }
}
