/* ================================================================
   FHConnect — LoginPage.css
   Modern, responsive, dark telecom aesthetic
================================================================ */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ── */
html, body {
  height: 100%;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: #0a0612;
  color: #fff;
  overflow: hidden;
}

/* ════════════════════════════════════════
   ANIMATED BACKGROUND
════════════════════════════════════════ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Canvas for particles */
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6b1e8a, transparent 70%);
  top: -120px; left: -100px;
  animation-duration: 20s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #9233a1, transparent 70%);
  bottom: -80px; right: -80px;
  animation-duration: 25s;
  animation-delay: -8s;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #cc44ff, transparent 70%);
  top: 40%; left: 35%;
  opacity: 0.2;
  animation-duration: 30s;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.08); }
  66%       { transform: translate(-20px, 25px) scale(0.95); }
}

/* ════════════════════════════════════════
   PAGE LAYOUT — split screen on desktop
════════════════════════════════════════ */
body {
  display: flex;
  align-items: stretch;
}

/* ═══════════════════════════════════════════════
   BRAND PANEL — new layout with FHConnect hero
   ═══════════════════════════════════════════════ */

.brand-panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 40px 30px;
}

.brand-content {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
}

/* ── ForgeNet parent brand (small, top) ── */
.brand-parent {
  text-align: center;
  margin-bottom: 0;
}

.brand-parent-logo {
  width: 300px;
  height: auto;
  max-width: 100%;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(204,68,255,0.3));
}

/* ── Subtle divider between brands ── */
.brand-divider {
  height: 1px;
  width: 60%;
  margin: 22px auto 24px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(204,68,255,0.4),
    transparent
  );
}

/* ── FHConnect hero (big logo + name + tagline) ── */
.brand-hero {
  text-align: center;
  margin-bottom: 28px;
}

.brand-hero-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(240,77,152,0.4));
  animation: fhcPulse 4s ease-in-out infinite;
}

@keyframes fhcPulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(240,77,152,0.35));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(240,77,152,0.55));
    transform: scale(1.03);
  }
}

.brand-name {
  font-size: 28px;
  font-weight: 300;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin: 0 0 6px;
}

.brand-name strong {
  font-weight: 900;
  background: linear-gradient(90deg, #cc44ff, #ff44aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  margin: 0;
}

/* ── Features list ── */
.brand-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.brand-features li i {
  color: #cc44ff;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Brand attribution at bottom ── */
.brand-attribution {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

.brand-operator {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.inwi-logo {
  height: 28px;
  object-fit: contain;
  opacity: .7;
  filter: brightness(0) invert(1);
}

/* ── LOGIN PANEL (right) ── */
.login-panel {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}

/* ── LOGIN BOX ── */
.login-box {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(146,51,161,.25);
  border-radius: 22px;
  padding: 44px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(204,68,255,.06),
    0 25px 60px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
  animation: boxIn .5s cubic-bezier(.22,1,.36,1) both;
}

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

/* Mobile logo — hidden on desktop */
.mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.mobile-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.mobile-logo span {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1.5px;
}
.mobile-logo strong {
  font-weight: 900;
  background: linear-gradient(90deg, #cc44ff, #ff44aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HEADER ── */
.login-header {
  margin-bottom: 28px;
}
.login-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: 6px;
}
.login-header p {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  font-weight: 400;
}

/* ════════════════════════════════════════
   ALERTS
════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 20px;
  animation: alertIn .3s ease both;
}
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert-error {
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.3);
  color: #ff8a80;
}
.alert-error i { color: #ff5252; font-size: 14px; }

.alert-locked {
  background: rgba(243,156,18,.1);
  border: 1px solid rgba(243,156,18,.3);
  color: #ffcc80;
}
.alert-locked i { color: #ffaa00; font-size: 14px; }

/* Lockdown progress bar */
.lockdown-bar {
  height: 3px;
  background: rgba(243,156,18,.15);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}
.lockdown-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ffaa00, #ff5722);
  border-radius: 2px;
  animation: lockdownShrink linear forwards;
  transform-origin: left;
}
@keyframes lockdownShrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ════════════════════════════════════════
   FORM FIELDS
════════════════════════════════════════ */
.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(146,51,161,.25);
  border-radius: 11px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field-wrap.focused {
  border-color: #9233a1;
  background: rgba(146,51,161,.1);
  box-shadow: 0 0 0 3px rgba(146,51,161,.18);
}
.field-wrap:hover:not(.focused) {
  border-color: rgba(146,51,161,.45);
}

.field-icon {
  position: absolute;
  left: 14px;
  color: rgba(179,91,211,.7);
  font-size: 13px;
  pointer-events: none;
  transition: color .2s;
  z-index: 1;
}
.field-wrap.focused .field-icon { color: #cc44ff; }

.field-input {
  width: 100%;
  padding: 13px 42px 13px 40px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: .2px;
  caret-color: #cc44ff;
}
.field-input::placeholder {
  color: rgba(255,255,255,.25);
  font-weight: 400;
}
.field-input:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Password toggle eye */
.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: rgba(179,91,211,.6);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  font-size: 13px;
  transition: color .2s;
  line-height: 1;
}
.toggle-pw:hover { color: #cc44ff; }

/* ════════════════════════════════════════
   LOGIN BUTTON
════════════════════════════════════════ */
.btn-login {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #9233a1 0%, #381b48 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 6px 24px rgba(146,51,161,.4);
}

/* Shimmer sweep on hover */
.btn-login::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transition: left .5s;
}
.btn-login:hover::before { left: 150%; }
.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(146,51,161,.55);
}
.btn-login:active:not(:disabled) {
  transform: scale(.97);
  box-shadow: 0 4px 14px rgba(146,51,161,.3);
}

/* Loader spinner (shown while submitting) */
.btn-loader { display: none; }
.btn-login.loading .btn-text   { display: none; }
.btn-login.loading .btn-loader { display: inline; }

/* Disabled / locked state */
.btn-login.btn-disabled,
.btn-login:disabled {
  background: linear-gradient(135deg, #4a2257, #231030);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .6;
}
.btn-login.btn-disabled::before { display: none; }

/* ── FOOTER ── */
.login-footer {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.22);
  margin-top: 24px;
  font-weight: 500;
  letter-spacing: .3px;
}
.login-footer i { color: rgba(204,68,255,.5); margin-right: 4px; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* Tablet — hide brand panel */
@media (max-width: 900px) {
  .brand-panel { display: none; }
  .mobile-logo { display: flex; }
  body { overflow: auto; }
  .login-panel { padding: 32px 16px; }
  .login-box { padding: 36px 28px; }
  .login-header h1 { font-size: 22px; }
}

/* Phone */
@media (max-width: 480px) {
  .login-panel { align-items: flex-start; padding: 24px 12px 40px; }
  .login-box {
    padding: 28px 20px;
    border-radius: 18px;
    max-width: 100%;
  }
  .login-header h1 { font-size: 20px; }
  .field-input { font-size: 16px; } /* prevents iOS auto-zoom */
  .btn-login { padding: 13px; font-size: 14px; }
}

/* Tall phone — center vertically */
@media (max-width: 480px) and (min-height: 700px) {
  .login-panel { align-items: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .orb, .bg-layer, .btn-login, .field-wrap,
  .lockdown-fill, .login-box, .alert {
    animation: none !important;
    transition: none !important;
  }
}

/* Print — hide everything (login page shouldn't be printed) */
@media print {
  body { display: none; }
}
.brand-parent-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -.6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  letter-spacing: -1px;
  color: #ffffff;
  text-decoration: none;
  transition: transform .3s ease;
}

.brand-parent-wordmark:hover { transform: scale(1.02); }

.brand-parent-logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(240, 77, 152, .3));
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.brand-parent-wordmark:hover .brand-parent-logo {
  transform: rotate(-6deg) scale(1.05);
}


.brand-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: rgba(240, 242, 255, .7);
  font-weight: 500;
  margin-bottom: 14px;
}

.brand-features li i,
.brand-features li .fa-check-circle,
.brand-features li .fas {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(240, 77, 152, .12);
  border: 1px solid rgba(240, 77, 152, .35);
  display: inline-flex; align-items: center; justify-content: center;
  color: #f04d98;
  font-size: 10px;
  flex-shrink: 0;
  /* neutralize default FontAwesome sizing quirks */
  padding: 0;
}
.brand-parent-wordmark em {
  font-family: 'Space Grotesk', sans-serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.6px;
  background: linear-gradient(135deg, #9233a1, #f04d98);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}