@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

#ep-root {
  height: 100vh;
  display: flex;
  flex-direction: row;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}

.ep-footer-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0EA5A4;
  color: #ffffff;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  z-index: 50;
  letter-spacing: 1px;
}
.marquee-content {
  display: flex;
  animation: scrollMarquee 20s linear infinite;
}
.marquee-content span {
  padding-right: 60px;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#ep-hero {
  flex: 1.5;
  background: url('/web-app/assets/images/small_isometric_building.png') left center / 48% auto no-repeat;
  background-color: #f8fafc;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 40px 64px 72px;
  overflow: hidden;
  height: 100vh;
}

.ep-live-badge {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(14,165,164,0.4);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 5px 16px 5px 10px;
  margin-bottom: 36px;
  width: fit-content;
}
.ep-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0EA5A4;
  animation: epPulse 2s ease-in-out infinite;
}
@keyframes epPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(1.7); }
}
.ep-live-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 900;
  color: #111827;
}

.ep-hero-title {
  position: relative; z-index: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(44px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1.07;
  margin-bottom: 22px;
  color: #111827;
  text-shadow: none;
}
.ep-hero-title .c-amber { color: #0EA5A4; }
.ep-hero-title .c-teal  { color: #4D6CB5; }
.ep-hero-title .c-dim   { color: #4D6CB5; }
.ep-hero-desc {
  position: relative; z-index: 1;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.85;
  max-width: 400px;
  margin-bottom: 48px;
  font-weight: 500;
  text-shadow: none;
}
.ep-hero-desc .ep-inline-icon svg {
  width: 16px; height: 16px;
  stroke-width: 2.2;
}

.ep-stats {
  position: relative; z-index: 1;
  display: flex;
  gap: 36px;
}
.ep-stat strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px; font-weight: 700;
  color: #008F72;
  line-height: 1;
}
.ep-stat small {
  font-size: 10px;
  color: #9CA3AF;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
.ep-bolt {
  position: absolute;
  right: -30px; bottom: 40px;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}
.ep-bolt svg { width: 300px; height: 300px; }
#ep-form-panel {
  flex: 1;
  height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 36px 80px 36px;
  position: relative;
  overflow: hidden;
}

.ep-form-inner {
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
}
.ep-logo { margin-bottom: 20px; }
.ep-logo img { height: 66px; object-fit: contain; }

.ep-rule {
  height: 2px;
 background: linear-gradient(90deg, transparent, #2c2f36, transparent);
  margin-bottom: 12px;
}

.ep-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px; font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.ep-subtitle {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 16px;
}

/* Fields */
.ep-field { margin-bottom: 20px; }
.ep-field-label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.ep-input-wrap { position: relative; display: flex; align-items: center; }
.ep-field-icon {
  position: absolute; left: 16px;
  color: #B0B8CC;
  display: flex; align-items: center;
  pointer-events: none;
}
.ep-field-icon svg { width: 15px; height: 15px; }

#ep-root .form-control {
  width: 100%;
  background: rgba(244,247,253,0.9);
  border: 1.5px solid #DCE4F0;
  border-radius: 12px;
  padding: 13px 16px 13px 46px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
#ep-root .form-control::placeholder { color: #B0B8CC; }
#ep-root .form-control:focus {
  border-color: #F58C00;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(245,140,0,0.12);
}

#ep-root .btn-theme {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
}
#ep-root .btn-theme::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}
#ep-root .btn-theme:hover::after { transform: translateX(100%); }
#ep-root .btn-theme:hover:not(:disabled) { transform: translateY(-1px); }
#ep-root .btn-theme:active:not(:disabled) { transform: scale(0.99); }

#ep-root .btn-primary {
  background-image: none;
  background-color: #0EA5A4;
  color: #fff;
}
#ep-root .btn-secondary {
  background: #E8ECF4;
  color: #A0A8BC;
  cursor: not-allowed;
  box-shadow: none;
}
#ep-root .spinner-border-sm {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: epSpin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes epSpin { to { transform: rotate(360deg); } }

/* Terms */
.ep-terms {
  text-align: center;
  font-size: 12px;
  color:#1a1a1a;
  line-height: 1.55;
  margin-top: 12px;
}
.ep-terms a {
  color: #F58C00;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(245,140,0,0.25);
  transition: color 0.2s;
}
.ep-terms a:hover { color: #FF7A00; }

.extra-login {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  font-size: 13px;
  color:#000000;
}
.extra-login::before, .extra-login::after {
  content: ''; flex: 1;
  height: 1px; background: #E8ECF4;
}

.social-list { display: flex; gap: 12px; }
.icon { flex: 1; position: relative; }
.icon .tooltip {
  position: absolute;
  bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: #111827;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px; color: #fff;
  white-space: nowrap;
  pointer-events: none; opacity: 0;
  transition: opacity 0.2s; z-index: 20;
}
.icon:hover .tooltip { opacity: 1; }
.icon span a {
  display: flex; align-items: center;
  justify-content: center; gap: 7px;
  padding: 10px; border-radius: 10px;
  border: 1.5px solid #E2E8F2;
  background: #F4F7FD;
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  color: #374151;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, color 0.2s;
}
.icon span a:hover { transform: translateY(-2px); }
.icon.facebook span a:hover {
  border-color: rgba(0,210,160,0.45);
  background: rgba(0,210,160,0.06);
  color: #00A882;
}
.icon.twitter span a:hover {
  border-color: rgba(245,140,0,0.45);
  background: rgba(245,140,0,0.06);
  color: #D97706;
}

#ep-root .toast-container { pointer-events: none; }
#ep-root .toast-container .toast { pointer-events: all; }

#ep-root .toast {
  min-width: 300px;
  background: #FFFFFF;
  border: 1px solid #E2E8F2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
#ep-root .toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
#ep-root .toast-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #FAFBFF;
  border-bottom: 1px solid #E8ECF4;
}
#ep-root .toast-header img { border-radius: 5px; }
#ep-root .toast-header strong { flex: 1; font-size: 13px; font-weight: 600; color: #111827; }
#ep-root .toast-header small  { font-size: 11px; color: #9CA3AF; }

#ep-root .btn-close {
  background: none; border: none; cursor: pointer;
  color: #9CA3AF;
  width: 22px; height: 22px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
  transition: color 0.2s, background 0.2s;
}
#ep-root .btn-close::before { content: '×'; }
#ep-root .btn-close:hover { color: #374151; background: #F0F2F8; }

#ep-root .toast-body {
  padding: 11px 14px;
  font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
#ep-root .position-fixed         { position: fixed !important; }
#ep-root .top-0                  { top: 0 !important; }
#ep-root .start-50               { left: 50% !important; }
#ep-root .translate-middle-x     { transform: translateX(-50%) !important; }
#ep-root .p-3                    { padding: 1rem !important; }
#ep-root .me-auto                { margin-right: auto !important; }
#ep-root .me-2                   { margin-right: 0.5rem !important; }
#ep-root .rounded                { border-radius: 4px !important; }
#ep-root .clearfix::after        { content: ''; display: table; clear: both; }
#ep-root .text-white             { color: #fff !important; }
#ep-root .text-dark              { color: #111827 !important; }

@media (max-width: 860px) {
  #ep-hero { display: none; }
  #ep-form-panel { width: 100%; }
}
