/* ═══════════════════════════════════════════════════════════════
   Funguka Login — Compact single card
   ═══════════════════════════════════════════════════════════════ */
.fg-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(249, 115, 22, .14), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(29, 63, 143, .20), transparent 60%),
    linear-gradient(180deg, #F5F8FC 0%, #EAF0FA 100%);
}

.fg-login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px 22px;
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 18px 48px -18px rgba(15, 23, 42, .22);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.fg-login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(135deg, var(--fg-primary) 0%, #2952b3 60%, var(--fg-orange) 140%);
  z-index: 0;
}

.fg-login-logo {
  position: relative;
  z-index: 1;
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 2px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}
.fg-login-card > *:not(.fg-login-logo) { position: relative; z-index: 1; }
.fg-login-card { padding-top: 40px; }
.fg-login-logo { margin-top: 4px; margin-bottom: 56px; }

.fg-login-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--fg-text);
  text-align: center;
}
.fg-login-card .sub {
  color: var(--fg-text-muted);
  font-size: .8rem;
  margin: 0 0 6px;
  text-align: center;
}

/* ───── Input wrapper ───── */
.fg-input-wrap { position: relative; }
.fg-input-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-text-soft);
  font-size: 13px;
  pointer-events: none;
}
.fg-input-wrap .form-control {
  width: 100%;
  padding: .7rem .9rem .7rem 40px;
  font-size: .88rem;
  border: 1.5px solid var(--fg-border);
  border-radius: 10px;
  background: #fafbfd;
  transition: all .2s;
}
.fg-input-wrap .form-control:focus {
  background: #fff;
  border-color: var(--fg-primary);
  box-shadow: 0 0 0 4px rgba(29, 63, 143, .1);
  outline: none;
}

/* Password show/hide toggle */
.fg-pwd-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--fg-text-soft);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.fg-pwd-toggle:hover {
  background: var(--fg-primary-50);
  color: var(--fg-primary);
}
.fg-pwd-toggle i { font-size: 13px; }
.fg-input-wrap:has(.fg-pwd-toggle) .form-control { padding-right: 44px; }

.fg-login-card .btn-primary {
  width: 100%;
  padding: .75rem;
  font-size: .9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-top: 4px;
  box-shadow: 0 8px 20px -10px rgba(29, 63, 143, .5);
}

.fg-login-card .helpers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  margin-top: 2px;
}
.fg-login-card .helpers a {
  color: var(--fg-primary);
  text-decoration: none;
  font-weight: 600;
}
.fg-login-card .helpers a:hover { text-decoration: underline; }
.fg-login-card .helpers .muted { color: var(--fg-text-muted); }

.fg-login-footer {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--fg-border);
  text-align: center;
  font-size: .68rem;
  color: var(--fg-text-muted);
}

/* ───── Responsive ───── */
@media (max-width: 480px) {
  .fg-login { padding: 14px; }
  .fg-login-card { padding: 24px 20px 18px; border-radius: 14px; }
  .fg-login-logo { height: 40px; }
  .fg-login-card h2 { font-size: 1.12rem; }
}
