/* =========================================
   LOGIN CSS
   ========================================= */

.login-box {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  box-sizing: border-box;
  overflow-y: auto;
}

.login-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 42px 32px 32px;
  background: #0c1721;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.login-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.login-close:hover {
  background: rgba(255,255,255,0.08);
  color: #ff4444;
}

.login-header {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.login-header h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-header p {
  margin: 8px 0 0;
  color: #97a3ae;
  font-size: 14px;
}

.login-content {
  padding-top: 24px;
}

.login-content label {
  display: block;
  margin: 0 0 7px;
  color: #cfd7df;
  font-size: 14px;
}

.login-content input {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  box-sizing: border-box;
  background: #162534;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.login-content input:focus {
  border-color: #0590ff;
}

.login-content input::placeholder {
  color: #7f8c98;
}

.login-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 20px;
  background: #0590ff;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.login-submit:hover {
  background: #047edc;
}

.login-links {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-top: 18px;
  pointer-events: auto;
}

.login-links button {
  position: relative;
  z-index: 21;
  display: inline-block;
  width: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: #97a3ae;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

.login-links button:hover {
  color: #0590ff;
}

@media (max-width: 600px) {
  .login-box {
    padding: 15px;
  }

  .login-panel {
    max-width: 100%;
    padding: 38px 20px 24px;
    border-radius: 12px;
  }

  .login-header h3 {
    font-size: 21px;
  }

  .login-links {
    flex-direction: column;
    align-items: center;
  }
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: #7f8c98;
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.10);
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  background: #162534;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.social-btn:hover {
  background: #1d3448;
  border-color: #0590ff;
}

.social-icon {
  width: 20px;
  text-align: center;
  font-weight: 700;
}

.login-terms {
  margin: 14px 4px 0;
  text-align: center;
  color: #7f8c98;
  font-size: 11px;
  line-height: 1.6;
}

.login-terms a {
  color: #97a3ae;
  text-decoration: underline;
}

.login-terms a:hover {
  color: #0590ff;
}

/* USER MENU */

#header-user-menu {
  position: fixed !important;
  min-width: 110px;
  padding: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  z-index: 99999 !important;
  pointer-events: auto !important;
  right: auto !important;
}

.user-menu-name {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px 7px;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

.user-menu-logout {
  display: block;
  width: 100%;
  padding: 6px;
  background: rgba(255,255,255,0.05);
  color: #000;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.user-menu-logout:hover {
  background: rgba(255,255,255,0.1);
  border-color: #0590ff;
}