/* ============================================
   INITHAN - LOGIN / SIGNUP PAGE STYLES
   ============================================ */

/* ---- Nav Auth Buttons ---- */
.nav-auth-btn {
  padding: 8px 22px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-spring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-auth-btn.login-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.nav-auth-btn.login-btn:hover,
.nav-auth-btn.login-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.nav-auth-btn.signup-btn {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.nav-auth-btn.signup-btn:hover,
.nav-auth-btn.signup-btn.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

/* ============================================
   LOGIN / SIGNUP SECTION
   ============================================ */
.login-section {
  position: relative;
  min-height: calc(100vh - 80px);
  padding-top: 50px;
  background: linear-gradient(135deg, #fff8f8 0%, #ffffff 40%, #fef5f5 70%, #fff0f0 100%);
  overflow: hidden;
}

/* ---- Floating Hearts ---- */
.login-heart {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  animation: loginHeartFloat 7s ease-in-out infinite;
  z-index: 1;
}

.lh1 { top: 12%; right: 8%;  font-size: 1.2rem; animation-delay: 0s; }
.lh2 { top: 25%; right: 15%; font-size: 0.9rem; animation-delay: 1.2s; }
.lh3 { top: 40%; right: 5%;  font-size: 1rem;   animation-delay: 2.5s; }
.lh4 { top: 55%; right: 20%; font-size: 1.1rem; animation-delay: 3.8s; }
.lh5 { top: 18%; right: 25%; font-size: 0.8rem; animation-delay: 0.8s; color: var(--primary); }
.lh6 { top: 65%; right: 12%; font-size: 1rem;   animation-delay: 4.5s; }
.lh7 { top: 35%; right: 30%; font-size: 0.7rem; animation-delay: 2s; }

@keyframes loginHeartFloat {
  0%   { opacity: 0;    transform: translateY(0) scale(0.5); }
  15%  { opacity: 0.5; }
  50%  { opacity: 0.3;  transform: translateY(-30px) scale(1); }
  85%  { opacity: 0.15; }
  100% { opacity: 0;    transform: translateY(-60px) scale(0.7); }
}

/* ============================================
   LAYOUT — 2-column split
   ============================================ */
.login-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 40px 40px;
  gap: 0;
  min-height: calc(100vh - 170px);
  align-items: center;
}

/* ============================================
   LEFT PANEL — Welcome / Hero
   ============================================ */
.login-welcome-panel {
  position: relative;
  padding: 40px 40px 40px 20px;
  animation: fadeInLeft 0.8s ease both;
}

.login-welcome-content {
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.login-welcome-script-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.login-welcome-script {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
}

.login-welcome-heart {
  font-size: 1.5rem;
  animation: heartBeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

.login-welcome-heading {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  margin-top: 8px;
  margin-bottom: 16px;
}

.login-heart-red {
  font-size: 2rem;
  animation: heartBeat 1.5s ease-in-out infinite;
  display: inline-block;
}

.login-welcome-sub {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.7;
  font-weight: 400;
}

/* ---- Welcome image ---- */
.login-welcome-images {
  position: relative;
  z-index: 2;
}

.login-hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 50px rgba(196, 30, 58, 0.15),
              0 5px 20px rgba(0, 0, 0, 0.08);
  animation: loginImgFloat 5s ease-in-out infinite;
  transform-origin: center bottom;
}

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

/* ============================================
   RIGHT PANEL — Form Card
   ============================================ */
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.login-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06),
              0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
}

/* ---- Form Header ---- */
.login-form-header {
  margin-bottom: 24px;
}

.login-form-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.login-title-icon {
  font-size: 1.4rem;
}

.login-title-heart {
  font-size: 1.3rem;
  animation: heartBeat 2s ease-in-out infinite;
  display: inline-block;
}

.login-form-divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 10px;
}

.login-form-subtitle {
  font-size: 0.92rem;
  color: var(--gray-500);
  font-weight: 400;
}

/* ============================================
   FORM FIELDS
   ============================================ */

/* Side-by-side row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.form-group {
  margin-bottom: 16px;
  min-width: 0;
  overflow: hidden;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.form-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.08);
}

.form-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 12px;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.form-input-wrap:focus-within .form-input-icon {
  color: var(--primary);
}

.form-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--dark);
  background: transparent;
  min-width: 0;
}

.form-input-wrap input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

/* ---- Password Toggle ---- */
.form-toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.form-toggle-password:hover {
  color: var(--primary);
}

/* ============================================
   TERMS & CONDITIONS
   ============================================ */
.form-terms {
  margin-bottom: 20px;
}

/* ---- Custom Checkbox ---- */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray-600);
  user-select: none;
  line-height: 1.4;
}

.form-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  flex-shrink: 0;
  position: relative;
  margin-top: 1px;
}

.form-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.form-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.checkbox-label {
  font-weight: 500;
}

.terms-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(196, 30, 58, 0.3);
  transition: var(--transition-normal);
}

.terms-link:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-dark);
}

/* ---- Form Options (Login page) ---- */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.form-forgot-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition-normal);
}

.form-forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.login-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 25px rgba(196, 30, 58, 0.3);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

.login-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.login-submit-btn:hover::before {
  left: 100%;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(196, 30, 58, 0.4);
}

.login-submit-btn:active {
  transform: translateY(0);
}

/* ============================================
   DIVIDER
   ============================================ */
.login-divider {
  display: flex;
  align-items: center;
  margin: 22px 0;
  gap: 14px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.login-divider span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */
.social-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition-spring);
  font-family: var(--font-body);
}

.social-btn:hover {
  border-color: var(--gray-300);
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social-btn svg {
  flex-shrink: 0;
}

/* ============================================
   BOTTOM LINK (Login / Sign Up prompt)
   ============================================ */
.login-signup-prompt {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-500);
}

.signup-link {
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition-normal);
}

.signup-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.login-trust-badges {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 28px 40px;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.trust-badge-item:hover {
  background: var(--gray-100);
}

.trust-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-icon.secure  { background: rgba(45, 106, 79, 0.1);  color: #2D6A4F; }
.trust-badge-icon.gifts   { background: rgba(196, 30, 58, 0.1);  color: var(--primary); }
.trust-badge-icon.love    { background: rgba(196, 30, 58, 0.1);  color: var(--primary); }
.trust-badge-icon.support { background: rgba(74, 111, 165, 0.1); color: #4A6FA5; }

.trust-badge-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.trust-badge-text span {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Large tablets */
@media (max-width: 1100px) {
  .login-container {
    gap: 20px;
    padding: 20px 24px 30px;
  }

  .login-welcome-heading {
    font-size: 2.2rem;
  }

  .login-welcome-panel {
    padding: 24px;
  }

  .login-form-card {
    padding: 30px 26px;
  }
}

/* Tablets & small screens — stack vertically */
@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 540px;
    padding: 20px;
    min-height: auto;
  }

  .login-welcome-panel {
    text-align: center;
    padding: 20px;
  }

  .login-welcome-script-wrap {
    justify-content: center;
  }

  .login-welcome-heading {
    font-size: 2rem;
  }

  .login-welcome-images {
    display: flex;
    justify-content: center;
  }

  .login-hero-img {
    max-width: 340px;
  }

  .login-form-card {
    padding: 28px 22px;
    max-width: 100%;
  }

  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lh5, .lh6, .lh7 {
    display: none;
  }

  .nav-auth-btn {
    display: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .login-section {
    padding-top: 75px;
  }

  .login-welcome-heading {
    font-size: 1.6rem;
  }

  .login-welcome-script {
    font-size: 2rem;
  }

  .login-form-card {
    padding: 22px 16px;
  }

  .login-form-title {
    font-size: 1.3rem;
  }

  /* Stack side-by-side fields on mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .social-login-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-badge-item {
    padding: 10px;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 768px) {
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav-links.active a {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .mobile-toggle span {
    background: var(--dark) !important;
  }

  .nav-links {
    display: none;
  }
}

/* ============================================
   WHATSAPP FORGOT PASSWORD MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(90deg);
}

.modal-header-accent {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  padding: 24px 24px 20px;
  color: #ffffff;
  position: relative;
}

.modal-header-accent .wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-header-accent h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.modal-header-accent p {
  font-size: 0.82rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.4;
}

.modal-body {
  padding: 20px 24px 24px;
}

.wa-step {
  display: none;
}

.wa-step.active {
  display: block;
}

.wa-otp-input {
  letter-spacing: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wa-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  margin-top: 14px;
}

.wa-btn:hover:not(:disabled) {
  background: #1ebc57;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.wa-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wa-btn-primary {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.35);
}

.wa-btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.45);
}

.wa-resend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.wa-resend-btn {
  background: none;
  border: none;
  color: #128C7E;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: 0.82rem;
}

.wa-resend-btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  text-decoration: none;
}

.wa-success-box {
  text-align: center;
  padding: 16px 8px;
}

.wa-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 14px;
  border: 2px solid #a7f3d0;
}
