/* ==========================================================================
   TCC - Login View Styles
   ========================================================================== */

.login-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.login-main {
  flex: 1;
  width: 92%;
  max-width: 1180px;
  margin: 130px auto 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Road Status Notice Block */
.road-status-card {
  text-align: left;
  max-width: 980px;
  margin: 0 auto 50px;
  padding: 0 10px;
  color: #ffffff;
}

.road-status-card .status-date {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #f1f5f9;
}

.road-status-card .status-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.road-status-card .status-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.road-status-card .status-item {
  font-size: 14px;
  line-height: 1.6;
  color: #f8fafc;
}

.road-status-card .status-item strong {
  font-weight: 700;
  color: #ffffff;
}

/* Central Login Card */
.login-card-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 600px;
}

.central-brand-logo {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.central-brand-logo img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.brand-motto {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  margin-top: 4px;
  margin-bottom: 24px;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-motto::before, .brand-motto::after {
  content: "—";
  color: #ffffff;
  font-weight: 400;
}

.welcome-header {
  margin-bottom: 24px;
}

.welcome-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.welcome-header p {
  font-size: 15px;
  color: #e2e8f0;
  font-weight: 400;
}

/* Phone Input Form */
.login-form {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 30px;
}

.phone-input-group {
  width: 100%;
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.phone-input-group:focus-within {
  box-shadow: 0 10px 30px rgba(215, 0, 0, 0.35);
  transform: translateY(-1px);
}

.country-prefix {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  gap: 6px;
  user-select: none;
}

.country-flag {
  font-size: 18px;
}

.phone-input {
  flex: 1;
  height: 54px;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 16px;
  color: var(--text-dark);
  background: #ffffff;
  font-weight: 500;
}

.phone-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.btn-login {
  width: 100%;
  height: 54px;
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(215, 0, 0, 0.4);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-login:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 12px 28px rgba(215, 0, 0, 0.55);
  transform: translateY(-2px);
}

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

.login-footer-info {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #f1f5f9;
  text-align: center;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Mobile Responsiveness for Login */
@media (max-width: 768px) {
  .login-main {
    margin-top: 110px;
  }

  .road-status-card {
    margin-bottom: 35px;
  }

  .road-status-card .status-date {
    font-size: 13px;
  }

  .road-status-card .status-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .road-status-card .status-item {
    font-size: 13px;
  }

  .central-brand-logo img {
    width: 140px;
  }

  .brand-motto {
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 18px;
  }

  .welcome-header h1 {
    font-size: 24px;
  }

  .welcome-header p {
    font-size: 13px;
  }

  .phone-input {
    height: 48px;
    font-size: 15px;
  }

  .country-prefix {
    font-size: 14px;
    padding: 0 12px;
  }

  .btn-login {
    height: 48px;
    font-size: 15px;
  }

  .login-footer-info {
    font-size: 12px;
    padding: 0 8px;
  }
}

/* ==========================================================================
   Temu Intermediate Screen Overlay
   ========================================================================== */
.temu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.4s ease, visibility 0.4s ease !important;
  overflow: hidden !important;
  background: #111827 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.temu-overlay.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.temu-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('../assets/images/indextemu.png') !important;
  background-size: cover !important;
  background-position: top center !important;
  background-repeat: no-repeat !important;
  filter: blur(8px) brightness(0.65) !important;
  transform: scale(1.04) !important;
  transition: filter 0.8s ease, transform 0.8s ease !important;
  z-index: 1 !important;
}

.temu-modal-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.temu-modal {
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
  width: 100% !important;
  max-width: 420px !important;
  padding: 24px 20px 20px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  transform: scale(0.9) !important;
  opacity: 0 !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease !important;
  z-index: 20 !important;
  position: relative !important;
}

.temu-overlay.blurred .temu-modal {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Temu Header Brand */
.temu-modal-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid #f1f3f5 !important;
}

.temu-brand-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.temu-brand-title {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #fb7701 !important; /* Temu Signature Orange */
  letter-spacing: -0.5px !important;
}

.temu-brand-dot {
  color: #cbd5e1 !important;
  font-size: 14px !important;
}

.temu-brand-sub {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.temu-security-tag {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #eaf8ea !important;
  color: #008a00 !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Icon badge */
.temu-icon-container {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 14px !important;
}

.temu-parcel-badge {
  position: relative !important;
  width: 64px !important;
  height: 64px !important;
  background: #fff5eb !important;
  border: 2px solid #ffd8b3 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.temu-parcel-emoji {
  font-size: 32px !important;
  line-height: 1 !important;
}

.temu-alert-bubble {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  width: 22px !important;
  height: 22px !important;
  background: #fb7701 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(251, 119, 1, 0.4) !important;
}

.temu-modal-header h2 {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.3 !important;
}

/* Alert Card Inside Modal */
.temu-alert-card {
  background: #fff8f0 !important;
  border: 1px solid #ffe3cc !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 20px !important;
  text-align: left !important;
}

.temu-alert-strong {
  color: #d95300 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin: 0 0 6px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.temu-alert-desc {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Temu Action Button */
.temu-modal-btn {
  background: linear-gradient(135deg, #fb7701 0%, #ff5400 100%) !important; /* Temu Orange Gradient */
  color: #ffffff !important;
  border: none !important;
  width: 100% !important;
  height: 48px !important;
  padding: 0 20px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 25px !important; /* Pill style button */
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(251, 119, 1, 0.38) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.temu-modal-btn:hover {
  filter: brightness(1.05) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(251, 119, 1, 0.48) !important;
}

.temu-modal-btn:active {
  transform: translateY(0) !important;
}

.temu-footer-note {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  margin: 12px 0 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

