/* ER Konnect — Admin Login (matched to landing, gold accent) */
:root {
  --erc-bg-0: #000000;
  --erc-bg-1: #0a0a0a;
  --erc-panel: rgba(20, 20, 20, 0.9);
  --erc-panel-border: rgba(196, 165, 116, 0.22);
  --erc-text: #ffffff;
  --erc-muted: #9ca3af;
  --erc-accent: #c4a574;
  --erc-accent-2: #d8bc8c;
  --erc-accent-deep: #9a7b4f;
  --erc-danger: #f87171;
  --erc-success: #34d399;
  --erc-input: rgba(0, 0, 0, 0.55);
  --erc-radius: 18px;
  --erc-font: "Inter", "DM Sans", "Segoe UI", sans-serif;
  --erc-display: "Inter", "Space Grotesk", "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.erconnect-login {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-family: var(--erc-font);
  color: var(--erc-text);
  background: var(--erc-bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.erconnect-login a {
  color: var(--erc-accent-2);
  text-decoration: none;
}

.erconnect-login a:hover {
  color: #e8d3ad;
}

.erc-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse 70% 55% at 70% 45%, rgba(196, 165, 116, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(154, 123, 79, 0.08), transparent 55%),
    linear-gradient(160deg, #000000 0%, #0a0a0a 45%, #000000 100%);
}

.erc-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 75% 60%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 88% 25%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 42% 40%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 18% 48%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 65% 82%, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.7;
  animation: erc-twinkle 8s ease-in-out infinite alternate;
}

@keyframes erc-twinkle {
  from { opacity: 0.45; }
  to { opacity: 0.8; }
}

.erc-globe-wrap {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(62vw, 720px);
  height: min(62vw, 720px);
  pointer-events: none;
  z-index: 0;
}

.erc-globe-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.28) 0%, rgba(154, 123, 79, 0.08) 42%, transparent 70%);
  filter: blur(8px);
  animation: erc-pulse 6s ease-in-out infinite;
}

@keyframes erc-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.erc-globe {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  overflow: hidden;
  background: #1a140c;
  box-shadow:
    inset -28px 0 48px rgba(0, 0, 0, 0.78),
    inset 10px 0 24px rgba(216, 188, 140, 0.1),
    0 0 80px rgba(154, 123, 79, 0.28),
    0 0 0 1px rgba(196, 165, 116, 0.18);
  transform: rotate(-8deg);
}

.erc-globe-map {
  position: absolute;
  inset: 0;
  background-image: url("../../images/erconnect/earth-map.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 center;
  border-radius: 50%;
  animation: erc-earth-spin 90s linear infinite;
  opacity: 1;
  filter: saturate(1.05) contrast(1.05) brightness(0.95) sepia(0.15);
}

@keyframes erc-earth-spin {
  from { background-position: 0 center; }
  to { background-position: -2048px center; }
}

.erc-globe-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 35%,
    transparent 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.erc-globe-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(196, 165, 116, 0.22);
  box-shadow: 0 0 40px rgba(196, 165, 116, 0.08);
  animation: erc-ring 12s ease-in-out infinite;
}

@keyframes erc-ring {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.03); opacity: 0.9; }
}

.erc-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 32px;
  border-radius: var(--erc-radius);
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(196, 165, 116, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: erc-panel-in 0.7s ease-out both;
}

@keyframes erc-panel-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.erc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.erc-brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: #0b0b0b;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.erc-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
}

.erc-brand-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.erc-brand-text h1 {
  margin: 0;
  font-family: var(--erc-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--erc-text);
}

.erc-brand-text p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--erc-muted);
}

.erc-panel h2 {
  margin: 0 0 6px;
  font-family: var(--erc-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.erc-panel .erc-subtitle {
  margin: 0 0 24px;
  color: var(--erc-muted);
  font-size: 0.92rem;
}

.erc-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.erc-alert-danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.erc-alert-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.erc-field {
  margin-bottom: 16px;
}

.erc-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.erc-input-wrap {
  position: relative;
}

.erc-input-wrap .erc-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--erc-muted);
  font-size: 14px;
  pointer-events: none;
}

.erc-field input.form-control {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border-radius: 12px;
  border: 1px solid rgba(196, 165, 116, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff !important;
  font-size: 0.95rem;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.erc-field input.form-control::placeholder {
  color: #6b7280;
}

.erc-field input.form-control:focus {
  outline: none;
  border-color: rgba(216, 188, 140, 0.75);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.18);
}

.erc-field input.input-error {
  border-color: rgba(248, 113, 113, 0.7);
}

.erc-field .text-danger {
  display: block;
  margin-top: 6px;
  color: var(--erc-danger) !important;
  font-size: 0.8rem;
}

.erc-captcha {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.erc-captcha .erc-captcha-img {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.erc-captcha .catpcha {
  cursor: pointer;
  color: var(--erc-accent);
  font-size: 18px;
}

.erc-captcha .erc-captcha-field {
  flex: 1 1 140px;
}

.erc-btn {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 1px solid #c4a574 !important;
  border-radius: 999px !important;
  background: #c4a574 !important;
  background-image: linear-gradient(135deg, #d8bc8c 0%, #9a7b4f 100%) !important;
  color: #111111 !important;
  font-family: var(--erc-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 28px rgba(154, 123, 79, 0.38) !important;
  text-shadow: none !important;
}

.erc-btn:hover,
.erc-btn:focus,
.erc-btn:active {
  filter: brightness(1.06);
  background: #d8bc8c !important;
  background-image: linear-gradient(135deg, #e4cfa8 0%, #c4a574 100%) !important;
  color: #111111 !important;
  box-shadow: 0 12px 32px rgba(196, 165, 116, 0.45) !important;
  outline: none;
}

.erc-footer-links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.88rem;
}

.erc-footer-links a {
  color: var(--erc-muted);
}

.erc-footer-links a:hover {
  color: var(--erc-accent-2);
}

.erc-copy {
  margin-top: 28px;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

@media (max-width: 1100px) {
  .erc-globe-wrap {
    right: -18%;
    opacity: 0.55;
  }
}

@media (max-width: 768px) {
  .erc-stage {
    padding: 24px 16px;
    align-items: flex-start;
    padding-top: 48px;
  }

  .erc-globe-wrap {
    width: min(90vw, 420px);
    height: min(90vw, 420px);
    right: 50%;
    top: auto;
    bottom: -8%;
    transform: translateX(50%);
    opacity: 0.35;
  }

  .erc-panel {
    padding: 32px 24px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .erc-globe-map,
  .erc-globe-glow,
  .erc-globe-ring,
  .erc-stars,
  .erc-panel {
    animation: none !important;
  }
}
