/* Login / OTP modal — matches the LikesNetwork dark-teal theme. */

.ln-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
}
.ln-login-overlay.open { display: flex; }

.ln-login-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #15201b;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 32px 28px;
  color: #f0f4f2;
  font-family: 'Open Sans', Arial, sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ln-login-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(240, 244, 242, 0.6);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.ln-login-close:hover { color: #f0f4f2; }

.ln-login-modal h2 {
  margin: 0 0 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 22px;
  color: #fff;
}
.ln-login-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(240, 244, 242, 0.65);
  line-height: 1.5;
}
.ln-login-email-display { color: #00d0a0; font-weight: 600; }

.ln-login-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  margin-bottom: 14px;
  background: #111815;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f0f4f2;
  font-size: 16px;
}
.ln-login-input:focus {
  outline: none;
  border-color: #00d0a0;
}
.ln-login-input.ln-code {
  letter-spacing: 6px;
  text-align: center;
  font-size: 22px;
}

.ln-login-btn {
  width: 100%;
  padding: 13px 16px;
  background: #00d0a0;
  color: #0c1116;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ln-login-btn:hover { background: #00e6b0; }
.ln-login-btn:disabled { opacity: 0.6; cursor: default; }

.ln-login-error {
  margin: 12px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: #ff8080;
}

.ln-login-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.ln-login-link {
  background: none;
  border: none;
  color: rgba(240, 244, 242, 0.7);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.ln-login-link:hover { color: #00d0a0; }
.ln-login-link:disabled { opacity: 0.5; cursor: default; }

/* ---- Logged-in indicator on the profile button (teal + status dot) ---- */
.hv-icon-btn.is-authed {
  border-color: var(--hv-teal, #00d0a0);
  color: var(--hv-teal, #00d0a0);
  background: var(--hv-teal-dim, rgba(0, 208, 160, 0.12));
}
.hv-icon-btn.is-authed::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00d0a0;
  border: 2px solid rgba(10, 12, 11, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 208, 160, 0.4);
}
/* Mobile profile link (a text item, not an icon button) */
#mobile-profile-button.is-authed { color: var(--hv-teal, #00d0a0); }
#mobile-profile-button.is-authed::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d0a0;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---- Profile dropdown menu (opened from the profile button when logged in) ---- */
.ln-pm-head {
  padding: 9px 13px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.ln-pm-head .ln-pm-label {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.ln-pm-head .ln-pm-email {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ln-profile-menu {
  position: fixed;
  min-width: 190px;
  background: rgba(16, 20, 18, 0.98);
  border: 1px solid var(--hv-border-teal, rgba(0, 208, 160, 0.28));
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  padding: 6px;
  z-index: 3000;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease;
}
.ln-profile-menu.is-open { opacity: 1; transform: translateY(0); }

.ln-profile-menu a,
.ln-profile-menu button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 11px 13px;
  border: none;
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.ln-profile-menu a:hover,
.ln-profile-menu button:hover {
  background: var(--hv-teal-dim, rgba(0, 208, 160, 0.12));
  color: var(--hv-teal, #00d0a0);
}
.ln-profile-menu .ln-pm-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  margin: 5px 4px;
}
.ln-profile-menu .ln-pm-danger:hover {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
}
